Class GeoTIFFFactory
java.lang.Object
org.libtiff.jai.codec.XTIFFFactory
org.geotiff.image.jai.GeoTIFFFactory
- All Implemented Interfaces:
Serializable
A factory object for a GeoTIFFDirectory and its corresponding
XTIFFField class.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionConstructs an empty TIFFDirectory for writingcreateDirectory(com.sun.media.jai.codec.SeekableStream stream, int directory) Constructs a TIFFDirectoryFactory from a SeekableStream.createDirectory(com.sun.media.jai.codec.SeekableStream stream, long ifd_offset) Constructs a TIFFDirectory by reading a SeekableStream.Methods inherited from class XTIFFFactory
createField
-
Constructor Details
-
GeoTIFFFactory
public GeoTIFFFactory()Default constructor
-
-
Method Details
-
createDirectory
public XTIFFDirectory createDirectory(com.sun.media.jai.codec.SeekableStream stream, int directory) throws 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:
createDirectoryin classXTIFFFactory- Parameters:
stream- a SeekableStream to read from.directory- the index of the directory to read.- Throws:
IOException
-
createDirectory
public XTIFFDirectory createDirectory(com.sun.media.jai.codec.SeekableStream stream, long ifd_offset) throws 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:
createDirectoryin classXTIFFFactory- Parameters:
stream- a SeekableStream to read from.ifd_offset- the long byte offset of the directory.- Throws:
IOException
-
createDirectory
Constructs an empty TIFFDirectory for writing- Overrides:
createDirectoryin classXTIFFFactory
-