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, setDebug
public boolean beginSOS()
beginSOS
in interface JpegUtils.Visitor
public void visitSOS(int marker, byte[] markerBytes, byte[] imageData)
visitSOS
in interface JpegUtils.Visitor
public boolean visitSegment(int marker, byte[] markerBytes, int segmentLength, byte[] segmentLengthBytes, byte[] segmentData) throws ImageReadException, java.io.IOException
visitSegment
in interface JpegUtils.Visitor
ImageReadException
java.io.IOException
public java.awt.image.BufferedImage decode(ByteSource byteSource) throws java.io.IOException, ImageReadException
java.io.IOException
ImageReadException
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"