public class TruncatedFileException extends RuntimeException
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.
JPEGImageDecoder,
序列化表格| 构造器和说明 |
|---|
TruncatedFileException(BufferedImage bi)
Constructs a
TruncatedFileException with the
partially decoded BufferedImage. |
TruncatedFileException(Raster ras)
Constructs an
TruncatedFileException with the
partially decoded Raster |
| 限定符和类型 | 方法和说明 |
|---|---|
BufferedImage |
getBufferedImage()
Allows access to the BufferedImage that was in the progress of
being decoded, this may be null, it is likely to be only
partially filled with image data.
|
Raster |
getRaster()
Allows access to the raster that was in the progress of being
decoded may be null, it is likely to be only partially filled
with image data.
|
public TruncatedFileException(BufferedImage bi)
TruncatedFileException with the
partially decoded BufferedImage.bi - the partially decoded BufferedImage (may be null).public TruncatedFileException(Raster ras)
TruncatedFileException with the
partially decoded Rasterras - the partially decoded Raster (may be null).public Raster getRaster()
public BufferedImage getBufferedImage()
Copyright © 2022. All rights reserved.