Class JpegSegmentReader

java.lang.Object
com.drew.imaging.jpeg.JpegSegmentReader

public class JpegSegmentReader extends Object
Performs read functions of JPEG files, returning specific file segments.

JPEG files are composed of a sequence of consecutive JPEG 'segments'. Each is identified by one of a set of byte values, modelled in the JpegSegmentType enumeration. Use readSegments to read out the some or all segments into a JpegSegmentData object, from which the raw JPEG segment byte arrays may be accessed.

  • Field Details

    • SEGMENT_IDENTIFIER

      private static final byte SEGMENT_IDENTIFIER
      The 0xFF byte that signals the start of a segment.
      See Also:
    • SEGMENT_SOS

      private static final byte SEGMENT_SOS
      Private, because this segment crashes my algorithm, and searching for it doesn't work (yet).
      See Also:
    • MARKER_EOI

      private static final byte MARKER_EOI
      Private, because one wouldn't search for it.
      See Also:
  • Constructor Details

  • Method Details