Changeset 3239
- Timestamp:
- 10/08/07 12:07:59 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/loci/formats/in/LIFReader.java
r3197 r3239 149 149 } 150 150 151 intblockLength = in.readInt();151 long blockLength = in.readInt(); 152 152 if (in.read() != 0x2a) { 153 in.skipBytes(3); 153 in.seek(in.getFilePointer() - 5); 154 blockLength = in.readLong(); 154 155 if (in.read() != 0x2a) { 155 156 throw new FormatException("Invalid Memory Description"); … … 163 164 offsets.add(new Long(in.getFilePointer())); 164 165 } 165 166 in.skipBytes(blockLength); 166 long skipped = 0; 167 while (skipped < blockLength) { 168 if (blockLength - skipped > 4096) { 169 skipped += in.skipBytes(4096); 170 } 171 else { 172 skipped += in.skipBytes((int) (blockLength - skipped)); 173 } 174 } 167 175 } 168 176 initMetadata(xml);
Note: See TracChangeset
for help on using the changeset viewer.