|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.asprise.util.tiff.TIFFReader
A 'Reader' for TIFF format, which can extract pages into RenderedImages.
Constructor Summary | |
TIFFReader(java.io.File tiffFile)
Creates a TIFF reader on the specified file. |
Method Summary | |
int |
countPages()
Returns the total number pages in the TIFF file. |
java.awt.image.RenderedImage |
getPage(int index)
Returns an image that contains the decoded contents of the specified page of the TIFF. 0 refer to the first page, 1 to the second, and so on. |
static void |
main(java.lang.String[] args)
This is a utility that takes a TIFF file and saves each of the pages into separate JPEG files into the specified directory. |
static boolean |
setFileHidden_Windows(java.io.File file,
boolean hidden)
Sets the specified file to be hidden or not - Windows only. |
static boolean |
setFileReadOnly_Windows(java.io.File file,
boolean readonly)
Sets the specified file to be read-only or not - Windows only. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TIFFReader(java.io.File tiffFile) throws java.io.IOException
tiffFile
-
java.io.IOException
Method Detail |
public java.awt.image.RenderedImage getPage(int index) throws java.io.IOException
index
-
java.io.IOException
public int countPages()
public static void main(java.lang.String[] args) throws java.io.IOException
args
-
java.io.IOException
public static boolean setFileHidden_Windows(java.io.File file, boolean hidden)
hidden
-
true
if no execption is thrown during command execution, false
otherwise.public static boolean setFileReadOnly_Windows(java.io.File file, boolean readonly)
readonly
-
true
if no execption is thrown during command execution, false
otherwise.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |