public final class JPEGSegmentUtil extends Object
| Modifier and Type | Field | Description |
|---|---|---|
static List<String> |
ALL_IDS |
|
static Map<Integer,List<String>> |
ALL_SEGMENTS |
|
static Map<Integer,List<String>> |
APP_SEGMENTS |
| Modifier and Type | Method | Description |
|---|---|---|
static boolean |
isKnownJPEGMarker(int marker) |
|
static void |
main(String[] args) |
|
static List<JPEGSegment> |
readSegments(ImageInputStream stream,
int marker,
String identifier) |
Reads the requested JPEG segments from the stream.
|
static List<JPEGSegment> |
readSegments(ImageInputStream stream,
Map<Integer,List<String>> segmentIdentifiers) |
Reads the requested JPEG segments from the stream.
|
public static List<JPEGSegment> readSegments(ImageInputStream stream, int marker, String identifier) throws IOException
stream - the stream to read from.marker - the segment marker to readidentifier - the identifier to read, or null to match any segmentIIOException - if a JPEG format exception occurs during readingIOException - if an I/O exception occurs during readingpublic static List<JPEGSegment> readSegments(ImageInputStream stream, Map<Integer,List<String>> segmentIdentifiers) throws IOException
stream - the stream to read from.segmentIdentifiers - the segment identifiersIIOException - if a JPEG format exception occurs during readingIOException - if an I/O exception occurs during readingALL_SEGMENTS,
APP_SEGMENTS,
ALL_IDSpublic static boolean isKnownJPEGMarker(int marker)
public static void main(String[] args) throws IOException
IOExceptionCopyright © 2018. All rights reserved.