Changeset 14601
- Timestamp:
- 2007-10-04T11:50:51+13:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gli/trunk/src/org/greenstone/gatherer/remote/RemoteGreenstoneServer.java
r14308 r14601 1083 1083 if (len >= 0) { 1084 1084 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))); 1087 1087 // Save the data to file 1088 1088 FileOutputStream zip_fos = new FileOutputStream(file_path);
Note:
See TracChangeset
for help on using the changeset viewer.