Changeset 14601

Show
Ignore:
Timestamp:
04.10.2007 11:50:51 (12 years ago)
Author:
qq6
Message:

added a guide

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/remote/RemoteGreenstoneServer.java

    r14308 r14601  
    10831083    if (len >= 0) { 
    10841084        String first_chunk = new String(buf, 0, len); 
    1085         first_line = first_chunk.substring(0, ((first_chunk.indexOf("\n") != -1) ? first_chunk.indexOf("\n") : len)); 
    1086  
     1085        // first_line = first_chunk.substring(0, ((first_chunk.indexOf("\n") != -1) ? first_chunk.indexOf("\n") : len)); 
     1086        first_line = first_chunk.substring(0, ((first_chunk.indexOf("\n") != -1) ? first_chunk.indexOf("\n") : ((first_chunk.length()<len) ? first_chunk.length():len))); 
    10871087        // Save the data to file 
    10881088        FileOutputStream zip_fos = new FileOutputStream(file_path);