Changeset 3963


Ignore:
Timestamp:
04/22/08 10:44:10 (12 years ago)
Author:
melissa
Message:

Cleaned up image name parsing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/in/SlidebookReader.java

    r3909 r3963  
    366366      else if (n == 'j') { 
    367367        // this block should contain an image name 
    368         in.skipBytes(4); 
    369         in.order(!core.littleEndian[0]); 
    370         int length = in.readShort(); 
    371         in.order(core.littleEndian[0]); 
    372         in.skipBytes(3); 
    373         // read image name, removing all non-whitespace and 
    374         // non-alphanumeric characters 
    375         imageNames[nextName++] = 
    376           in.readString(length).replaceAll("[\\W&&[\\S]]", ""); 
     368        in.skipBytes(14); 
     369        imageNames[nextName++] = in.readCString().trim(); 
    377370      } 
    378371    } 
Note: See TracChangeset for help on using the changeset viewer.