Changeset 2617


Ignore:
Timestamp:
04/13/07 11:09:43 (13 years ago)
Author:
curtis
Message:

Add convenience method for overwriting TIFF comment.

File:
1 edited

Legend:

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

    r2601 r2617  
    19771977  } 
    19781978 
     1979  /** Convenience method for overwriting a file's first ImageDescription. */ 
     1980  public static void overwriteComment(String id, Object value) 
     1981    throws FormatException, IOException 
     1982  { 
     1983    RandomAccessFile raf = new RandomAccessFile(id, "rw"); 
     1984    overwriteIFDValue(raf, 0, TiffTools.IMAGE_DESCRIPTION, value); 
     1985    raf.close(); 
     1986  } 
     1987 
    19791988  /** 
    19801989   * Surgically overwrites an existing IFD value with the given one. This 
Note: See TracChangeset for help on using the changeset viewer.