|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.media.jai.codec.ImageDecoderImpl
uk.ac.starlink.jaiutil.HDXDecoder
public class HDXDecoder
An ImageDecoder for the HDX file format.
Field Summary |
---|
Fields inherited from class com.sun.media.jai.codec.ImageDecoderImpl |
---|
input, param |
Constructor Summary | |
---|---|
HDXDecoder(com.sun.media.jai.codec.SeekableStream input,
com.sun.media.jai.codec.ImageDecodeParam param)
Constructor |
Method Summary | |
---|---|
RenderedImage |
decodeAsRenderedImage()
Return the current RenderedImage that has been extracted from the SeekableStream, |
RenderedImage |
decodeAsRenderedImage(int page)
Returns a RenderedImage that contains the decoded contents of the SeekableStream associated with this ImageDecoder. |
int |
getNumPages()
Returns the number of pages (NDXs) present in the current stream. |
Methods inherited from class com.sun.media.jai.codec.ImageDecoderImpl |
---|
decodeAsRaster, decodeAsRaster, getInputStream, getParam, setParam |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HDXDecoder(com.sun.media.jai.codec.SeekableStream input, com.sun.media.jai.codec.ImageDecodeParam param) throws IOException
IOException
Method Detail |
---|
public RenderedImage decodeAsRenderedImage() throws IOException
decodeAsRenderedImage
in interface com.sun.media.jai.codec.ImageDecoder
decodeAsRenderedImage
in class com.sun.media.jai.codec.ImageDecoderImpl
IOException
public RenderedImage decodeAsRenderedImage(int page) throws IOException
decodeAsRenderedImage
in interface com.sun.media.jai.codec.ImageDecoder
decodeAsRenderedImage
in class com.sun.media.jai.codec.ImageDecoderImpl
IOException
public int getNumPages() throws IOException
Note: The HDX codec defines properties, such as "#num_pages", "#hdx_image", and "#preview_image" that give direct access to the NDXs, so that you can tell ahead of time if an HDX structure contains an image.
getNumPages
in interface com.sun.media.jai.codec.ImageDecoder
getNumPages
in class com.sun.media.jai.codec.ImageDecoderImpl
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |