public interface JPEGImageDecoder
Note that the classes in the com.sun.image.codec.jpeg package are not part of the core Java APIs. They are a part of Sun's JDK and JRE distributions. Although other licensees may choose to distribute these classes, developers cannot depend on their availability in non-Sun implementations. We expect that equivalent functionality will eventually be available in a core API or standard extension.
JPEGCodec,
JPEGDecodeParam,
Raster,
BufferedImage| 限定符和类型 | 方法和说明 |
|---|---|
BufferedImage |
decodeAsBufferedImage()
Decodes the current JPEG data stream.
|
Raster |
decodeAsRaster()
Decode the JPEG stream that was passed as part of
construction.
|
InputStream |
getInputStream()
Get the input stream that decoding will occur from.
|
JPEGDecodeParam |
getJPEGDecodeParam()
Returns the JPEGDecodeParam object that resulted from the most
recent decoding event.
|
void |
setJPEGDecodeParam(JPEGDecodeParam jdp)
Sets the JPEGDecodeParam object used to determine the features
of the decompression performed on the JPEG encoded data.
|
JPEGDecodeParam getJPEGDecodeParam()
void setJPEGDecodeParam(JPEGDecodeParam jdp)
jdp - JPEGDecodeParam objectInputStream getInputStream()
Raster decodeAsRaster() throws IOException, ImageFormatException
ImageFormatException - if irregularities in the JPEG
stream or an unknown condition is encountered.IOExceptionBufferedImage decodeAsBufferedImage() throws IOException, ImageFormatException
ImageFormatException - if irregularities in the JPEG
stream or an unknown condition is encountered.IOExceptionCopyright © 2022. All rights reserved.