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, toString
getByteOrder, getDebug, setDebug
public GenericSegment(int marker, int markerLength, java.io.InputStream is) throws java.io.IOException
java.io.IOException
public 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"