org.geotiff.image.jai
Class GeoTIFFFactory

java.lang.Object
  extended by org.libtiff.jai.codec.XTIFFFactory
      extended by org.geotiff.image.jai.GeoTIFFFactory
All Implemented Interfaces:
java.io.Serializable

public class GeoTIFFFactory
extends XTIFFFactory
implements java.io.Serializable

A factory object for a GeoTIFFDirectory and its corresponding XTIFFField class.

See Also:
XTIFFDirectory, XTIFFField, Serialized Form

Constructor Summary
GeoTIFFFactory()
          Default constructor
 
Method Summary
 XTIFFDirectory createDirectory()
          Constructs an empty TIFFDirectory for writing
 XTIFFDirectory createDirectory(com.sun.media.jai.codec.SeekableStream stream, int directory)
          Constructs a TIFFDirectoryFactory from a SeekableStream.
 XTIFFDirectory createDirectory(com.sun.media.jai.codec.SeekableStream stream, long ifd_offset)
          Constructs a TIFFDirectory by reading a SeekableStream.
 
Methods inherited from class org.libtiff.jai.codec.XTIFFFactory
createField
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeoTIFFFactory

public GeoTIFFFactory()
Default constructor

Method Detail

createDirectory

public XTIFFDirectory createDirectory(com.sun.media.jai.codec.SeekableStream stream,
                                      int directory)
                               throws java.io.IOException
Constructs a TIFFDirectoryFactory from a SeekableStream. The directory parameter specifies which directory to read from the linked list present in the stream; directory 0 is normally read but it is possible to store multiple images in a single TIFF file by maintaing multiple directories.

Overrides:
createDirectory in class XTIFFFactory
Parameters:
stream - a SeekableStream to read from.
directory - the index of the directory to read.
Throws:
java.io.IOException

createDirectory

public XTIFFDirectory createDirectory(com.sun.media.jai.codec.SeekableStream stream,
                                      long ifd_offset)
                               throws java.io.IOException
Constructs a TIFFDirectory by reading a SeekableStream. The ifd_offset parameter specifies the stream offset from which to begin reading; this mechanism is sometimes used to store private IFDs within a TIFF file that are not part of the normal sequence of IFDs.

Overrides:
createDirectory in class XTIFFFactory
Parameters:
stream - a SeekableStream to read from.
ifd_offset - the long byte offset of the directory.
Throws:
java.io.IOException

createDirectory

public XTIFFDirectory createDirectory()
Constructs an empty TIFFDirectory for writing

Overrides:
createDirectory in class XTIFFFactory