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, setByteOrder
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, IOException
visitSegment
in interface JpegUtils.Visitor
ImageReadException
IOException
public BufferedImage decode(ByteSource byteSource) throws IOException, ImageReadException
IOException
ImageReadException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.