|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--java.lang.RuntimeException | +--com.sun.image.codec.jpeg.TruncatedFileException
Signals that a truncated file was detected. This object contains the Raster/BufferedImage that has the partially decoded image data in it. There is no indication of the portion of the Raster that may or may not be good.
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
,
Serialized FormConstructor Summary | |
TruncatedFileException(BufferedImage bi)
Constructs a TruncatedFileException/code> with the
partially decoded BufferedImage. |
|
TruncatedFileException(Raster ras)
Constructs an TruncatedFileException with the
partially decoded Raster |
Method Summary | |
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. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public TruncatedFileException(BufferedImage bi)
TruncatedFileException/code> with the
partially decoded BufferedImage.
- Parameters:
bi
- the partially decoded BufferedImage (may be null).- Since:
- JDK1.2
public TruncatedFileException(Raster ras)
TruncatedFileException
with the
partially decoded Raster
ras
- the partially decoded Raster (may be null).Method Detail |
public Raster getRaster()
public BufferedImage getBufferedImage()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |