public final class JPEGSegmentUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.util.List<java.lang.String> |
ALL_IDS |
static java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> |
ALL_SEGMENTS |
static java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> |
APP_SEGMENTS |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isKnownJPEGMarker(int marker) |
static void |
main(java.lang.String[] args) |
static java.util.List<JPEGSegment> |
readSegments(javax.imageio.stream.ImageInputStream stream,
int marker,
java.lang.String identifier)
Reads the requested JPEG segments from the stream.
|
static java.util.List<JPEGSegment> |
readSegments(javax.imageio.stream.ImageInputStream stream,
java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> segmentIdentifiers)
Reads the requested JPEG segments from the stream.
|
public static final java.util.List<java.lang.String> ALL_IDS
public static final java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> ALL_SEGMENTS
public static final java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> APP_SEGMENTS
public static java.util.List<JPEGSegment> readSegments(javax.imageio.stream.ImageInputStream stream, int marker, java.lang.String identifier) throws java.io.IOException
stream - the stream to read from.marker - the segment marker to readidentifier - the identifier to read, or null to match any segmentjavax.imageio.IIOException - if a JPEG format exception occurs during readingjava.io.IOException - if an I/O exception occurs during readingpublic static java.util.List<JPEGSegment> readSegments(javax.imageio.stream.ImageInputStream stream, java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> segmentIdentifiers) throws java.io.IOException
stream - the stream to read from.segmentIdentifiers - the segment identifiersjavax.imageio.IIOException - if a JPEG format exception occurs during readingjava.io.IOException - if an I/O exception occurs during readingALL_SEGMENTS,
APP_SEGMENTS,
ALL_IDSpublic static boolean isKnownJPEGMarker(int marker)
public static void main(java.lang.String[] args)
throws java.io.IOException
java.io.IOExceptionCopyright © 2021. All Rights Reserved.