Class JpegDecoder
- java.lang.Object
-
- org.apache.commons.imaging.common.BinaryFileParser
-
- org.apache.commons.imaging.formats.jpeg.decoder.JpegDecoder
-
- All Implemented Interfaces:
JpegUtils.Visitor
public class JpegDecoder extends BinaryFileParser implements JpegUtils.Visitor
-
-
Constructor Summary
Constructors Constructor Description JpegDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanbeginSOS()BufferedImagedecode(ByteSource byteSource)booleanvisitSegment(int marker, byte[] markerBytes, int segmentLength, byte[] segmentLengthBytes, byte[] segmentData)voidvisitSOS(int marker, byte[] markerBytes, byte[] imageData)-
Methods inherited from class org.apache.commons.imaging.common.BinaryFileParser
debugNumber, debugNumber, getByteOrder, setByteOrder
-
-
-
-
Method Detail
-
beginSOS
public boolean beginSOS()
- Specified by:
beginSOSin interfaceJpegUtils.Visitor
-
visitSOS
public void visitSOS(int marker, byte[] markerBytes, byte[] imageData)- Specified by:
visitSOSin interfaceJpegUtils.Visitor
-
visitSegment
public boolean visitSegment(int marker, byte[] markerBytes, int segmentLength, byte[] segmentLengthBytes, byte[] segmentData) throws ImageReadException, IOException- Specified by:
visitSegmentin interfaceJpegUtils.Visitor- Throws:
ImageReadExceptionIOException
-
decode
public BufferedImage decode(ByteSource byteSource) throws IOException, ImageReadException
- Throws:
IOExceptionImageReadException
-
-