DynamicPDF by ceTe Software

com.cete.dynamicpdf.imaging
Class TiffFile

java.lang.Object
  |
  +--com.cete.dynamicpdf.imaging.TiffFile

public class TiffFile
extends java.lang.Object

Class represents a TIFF image file.

Licensing:
This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:

View Example


Constructor Summary
TiffFile(byte[] data)
          Initializes a new instance of the TiffFile class.
TiffFile(java.lang.String filePath)
          Initializes a new instance of the TiffFile class.
 
Method Summary
 void close()
          Closes the stream associated with this object.
 Document getDocument()
          Creates a Document object that contains the images of the tiff file.
 TiffImageData getFirstImage()
          Returns the first image in the TIFF file.
 TiffImageDataList getImages()
          Returns a collection of images in the TIFF file.
static boolean isValid(byte[] header)
          Returns a value indicating if the provides file header is valid for a TIFF image.
static boolean isValid(java.lang.String fileExtension)
          Returns a value indicating if the provides file extension is valid for a TIFF image.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TiffFile

public TiffFile(java.lang.String filePath)
         throws java.io.FileNotFoundException
Initializes a new instance of the TiffFile class.

Throws:
ImageParsingException - If TIFF file is invalid.
java.io.FileNotFoundException - If physical file path of the image is not found.
Parameters:
filePath - The physical file path of the TIFF.
See Also:
TiffFile

TiffFile

public TiffFile(byte[] data)
Initializes a new instance of the TiffFile class.

Throws:
ImageParsingException - If TIFF file is invalid.
GeneratorException - If byte array is null.
Parameters:
data - The byte array containing the file data.
See Also:
TiffFile
Method Detail

close

public void close()
Closes the stream associated with this object.


getDocument

public Document getDocument()
Creates a Document object that contains the images of the tiff file.

Returns:
A Document object.
See Also:
Document

isValid

public static boolean isValid(java.lang.String fileExtension)
Returns a value indicating if the provides file extension is valid for a TIFF image.

Parameters:
fileExtension - String value containing file extension.
Returns:
true, if the file extension is valid. Otherwise false.

isValid

public static boolean isValid(byte[] header)
Returns a value indicating if the provides file header is valid for a TIFF image.

Parameters:
header - Contains the image header bytes.
Returns:
true, if the file extension is valid. Otherwise false.

getImages

public TiffImageDataList getImages()
Returns a collection of images in the TIFF file.


getFirstImage

public TiffImageData getFirstImage()
Returns the first image in the TIFF file.


DynamicPDF by ceTe Software

API Reference for DynamicPDFTM v4.0.3 for Java generated on March 22, 2007
© Copyright 2007, ceTe Software