public class JpegDecoder extends BinaryFileParser implements JpegUtils.Visitor
| Constructor and Description |
|---|
JpegDecoder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
beginSOS() |
BufferedImage |
decode(ByteSource byteSource) |
boolean |
visitSegment(int marker,
byte[] markerBytes,
int segmentLength,
byte[] segmentLengthBytes,
byte[] segmentData) |
void |
visitSOS(int marker,
byte[] markerBytes,
byte[] imageData) |
debugNumber, debugNumber, getByteOrder, setByteOrderpublic boolean beginSOS()
beginSOS in interface JpegUtils.Visitorpublic void visitSOS(int marker,
byte[] markerBytes,
byte[] imageData)
visitSOS in interface JpegUtils.Visitorpublic boolean visitSegment(int marker,
byte[] markerBytes,
int segmentLength,
byte[] segmentLengthBytes,
byte[] segmentData)
throws ImageReadException,
IOException
visitSegment in interface JpegUtils.VisitorImageReadExceptionIOExceptionpublic BufferedImage decode(ByteSource byteSource) throws IOException, ImageReadException
IOExceptionImageReadExceptionCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.