public class JpegDecoder extends BinaryFileParser implements JpegUtils.Visitor
| Constructor and Description |
|---|
JpegDecoder() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
beginSOS() |
java.awt.image.BufferedImage |
decode(ByteSource byteSource) |
boolean |
visitSegment(int marker,
byte[] markerBytes,
int segmentLength,
byte[] segmentLengthBytes,
byte[] segmentData) |
void |
visitSOS(int marker,
byte[] markerBytes,
byte[] imageData) |
getByteOrder, getDebug, setDebugpublic 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,
java.io.IOException
visitSegment in interface JpegUtils.VisitorImageReadExceptionjava.io.IOExceptionpublic java.awt.image.BufferedImage decode(ByteSource byteSource) throws java.io.IOException, ImageReadException
java.io.IOExceptionImageReadException"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"