Changeset 2918


Ignore:
Timestamp:
06/28/07 11:10:44 (12 years ago)
Author:
melissa
Message:

Added method to read a string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/formats/RandomAccessStream.java

    r2862 r2918  
    325325  } 
    326326 
     327  /** Read a string of length n. */ 
     328  public String readString(int n) throws IOException { 
     329    byte[] b = new byte[n]; 
     330    read(b); 
     331    return new String(b); 
     332  } 
     333 
    327334  /** Read eight input bytes and return a long value. */ 
    328335  public long readLong() throws IOException { 
Note: See TracChangeset for help on using the changeset viewer.