Class com.sun.image.codec.jpeg.TruncatedFileException
java.lang.Object
|
+--java.lang.Throwable
|
+--java.lang.Exception
|
+--java.lang.RuntimeException
|
+--com.sun.image.codec.jpeg.TruncatedFileException
- public class TruncatedFileException
- extends RuntimeException
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.
- Since:
- JDK1.2
- See Also:
JPEGImageDecoder
, Serialized Form
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. |
TruncatedFileException
public TruncatedFileException(BufferedImage bi)
- Constructs a
TruncatedFileException/code> with the
partially decoded BufferedImage.
- Parameters:
bi
- the partially decoded BufferedImage (may be null).
TruncatedFileException
public TruncatedFileException(Raster ras)
- Constructs an
TruncatedFileException
with the
partially decoded Raster
- Parameters:
ras
- the partially decoded Raster (may be null).
getRaster
public 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.
getBufferedImage
public 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.
Submit a bug or feature
Submit comments/suggestions about new javadoc look
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.
This documentation was generated with a post-Beta4 version of Javadoc.