Class JpegDecoder
java.lang.Object
org.apache.commons.imaging.common.BinaryFileParser
org.apache.commons.imaging.formats.jpeg.decoder.JpegDecoder
- All Implemented Interfaces:
- JpegUtils.Visitor
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a new instance with the default, big-endian, byte order.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbeginSos()decode(ByteSource byteSource) voidSets the decoder to treat incoming data as using the RGB color model.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.BinaryFileParserdebugNumber, debugNumber, getByteOrder, setByteOrder
- 
Constructor Details- 
JpegDecoderpublic JpegDecoder()Constructs a new instance with the default, big-endian, byte order.
 
- 
- 
Method Details- 
beginSos- Specified by:
- beginSosin interface- JpegUtils.Visitor
 
- 
decode- Throws:
- IOException
- ImagingException
 
- 
setTiffRgbSets the decoder to treat incoming data as using the RGB color model. This extension to the JPEG specification is intended to support TIFF files that use JPEG compression.
- 
visitSegmentpublic boolean visitSegment(int marker, byte[] markerBytes, int segmentLength, byte[] segmentLengthBytes, byte[] segmentData) throws ImagingException, IOException - Specified by:
- visitSegmentin interface- JpegUtils.Visitor
- Throws:
- ImagingException
- IOException
 
- 
visitSos- Specified by:
- visitSosin interface- JpegUtils.Visitor
 
 
-