net.grelf.grip
Class ExifFile

java.lang.Object
  extended by java.io.RandomAccessFile
      extended by net.grelf.grip.ExifFile
All Implemented Interfaces:
java.io.Closeable, java.io.DataInput, java.io.DataOutput

public class ExifFile
extends java.io.RandomAccessFile

Methods for reading multi-byte values from the EXIF data section of an image file (EXIF is similar to TIFF).


Constructor Summary
ExifFile(java.lang.String filename, java.lang.String mode)
           
 
Method Summary
 boolean isIntelByteOrder()
           
 void setIntelByteOrder(boolean order)
           
 int tiffRead2()
           
 long tiffRead4()
           
 int tiffReadUnsigned2()
           
 long tiffReadUnsigned4()
           
 
Methods inherited from class java.io.RandomAccessFile
close, getChannel, getFD, getFilePointer, length, read, read, read, readBoolean, readByte, readChar, readDouble, readFloat, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedShort, readUTF, seek, setLength, skipBytes, write, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExifFile

public ExifFile(java.lang.String filename,
                java.lang.String mode)
         throws java.io.FileNotFoundException
Throws:
java.io.FileNotFoundException
Method Detail

isIntelByteOrder

public boolean isIntelByteOrder()

setIntelByteOrder

public void setIntelByteOrder(boolean order)

tiffRead4

public long tiffRead4()
               throws java.io.IOException
Throws:
java.io.IOException

tiffRead2

public int tiffRead2()
              throws java.io.IOException
Throws:
java.io.IOException

tiffReadUnsigned4

public long tiffReadUnsigned4()
                       throws java.io.IOException
Throws:
java.io.IOException

tiffReadUnsigned2

public int tiffReadUnsigned2()
                      throws java.io.IOException
Throws:
java.io.IOException