public abstract class GenericSegment extends Segment
| Constructor and Description |
|---|
GenericSegment(int marker,
byte[] bytes) |
GenericSegment(int marker,
int markerLength,
java.io.InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
void |
dump(java.io.PrintWriter pw) |
void |
dump(java.io.PrintWriter pw,
int start) |
byte[] |
getSegmentData()
Returns a copy of the segment's contents,
excluding the marker and length bytes at
the beginning.
|
java.lang.String |
getSegmentDataAsString(java.lang.String encoding)
Convert the bytes to a String
|
getDescription, getSegmentType, toStringgetByteOrder, getDebug, setDebugpublic GenericSegment(int marker,
int markerLength,
java.io.InputStream is)
throws java.io.IOException
java.io.IOExceptionpublic GenericSegment(int marker,
byte[] bytes)
public void dump(java.io.PrintWriter pw,
int start)
public byte[] getSegmentData()
public java.lang.String getSegmentDataAsString(java.lang.String encoding)
throws java.io.UnsupportedEncodingException
encoding - java.io.UnsupportedEncodingException"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"