Ignore:
Timestamp:
10/25/06 08:44:41 (13 years ago)
Author:
melissa
Message:

Added getMappedId(String) to "getting started" guide.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/getting-started.txt

    r1653 r1679  
    9898usually sufficient to override initFile(String) and isThisType(byte[]). 
    9999 
     100Any time you read a file from disk (e.g. when constructing a file stream), you 
     101*must* read from the file name returned by FormatHandler.getMappedId(String), 
     102not the file name passed to the reader.  Thus a stub for initFile(String) might 
     103look like this: 
     104 
     105  protected void initFile(String id) throws FormatException, IOException { 
     106    super.initFile(id); 
     107    RandomAccessStream in = new RandomAccessStream(getMappedId(String)); 
     108  } 
     109 
     110 
    100111---=== Other useful things ===--- 
    101112 
Note: See TracChangeset for help on using the changeset viewer.