public static class GAD_GraphicsData.BeginSegment extends java.lang.Object implements IAFPDecodeableWriteable
| Modifier and Type | Class and Description |
|---|---|
static class |
GAD_GraphicsData.BeginSegment.SegmentPropertiesFlag |
| Modifier and Type | Field and Description |
|---|---|
static short |
COMMANDCODE_BeginSegment |
| Constructor and Description |
|---|
BeginSegment() |
| Modifier and Type | Method and Description |
|---|---|
void |
decodeAFP(byte[] sfData,
int offset,
int length,
AFPParserConfiguration config)
Decodes the given AFP data.
Parameter length specifies the length in bytes of the data to be decoded, beginning with position offset. |
short |
getCommandCode() |
java.util.List<GAD_DrawingOrder> |
getDrawingOrders() |
byte |
getFlagAnyValue() |
short |
getLengtOfFollowingParameters() |
java.lang.String |
getNameOfPredecessorSuccessorSegment() |
java.lang.String |
getNameOfSegment() |
int |
getSegmentDataLength() |
java.util.EnumSet<GAD_GraphicsData.BeginSegment.SegmentPropertiesFlag> |
getSegmentPropertiesFlags() |
void |
setCommandCode(short commandCode) |
void |
setDrawingOrders(java.util.List<GAD_DrawingOrder> drawingOrders) |
void |
setFlagAnyValue(byte flagAnyValue) |
void |
setLengtOfFollowingParameters(short lengtOfFollowingParameters) |
void |
setNameOfPredecessorSuccessorSegment(java.lang.String nameOfPredecessorSuccessorSegment) |
void |
setNameOfSegment(java.lang.String nameOfSegment) |
void |
setSegmentDataLength(int segmentDataLength) |
void |
setSegmentPropertiesFlag(GAD_GraphicsData.BeginSegment.SegmentPropertiesFlag flag)
Sets the given
GAD_GraphicsData.BeginSegment.SegmentPropertiesFlag and un-sets corresponding mutual exclusive
flags. |
void |
setSegmentPropertiesFlags(java.util.EnumSet<GAD_GraphicsData.BeginSegment.SegmentPropertiesFlag> segmentPropertiesFlags) |
void |
writeAFP(java.io.OutputStream os,
AFPParserConfiguration config)
Writes the object to the given os encoded as AFP data.
|
public void decodeAFP(byte[] sfData,
int offset,
int length,
AFPParserConfiguration config)
throws AFPParserException
IAFPDecodeableWriteabledecodeAFP in interface IAFPDecodeableWriteablesfData - contains the AFP data to decode.offset - the byte index position where the decoding should start.length - the length in bytes of the data to be decoded, beginning with position offset.config - contains parameter used for decoding.AFPParserException - if the given AFP data are invalid.public void writeAFP(java.io.OutputStream os,
AFPParserConfiguration config)
throws java.io.IOException
IAFPDecodeableWriteablewriteAFP in interface IAFPDecodeableWriteableos - OutputStream to write to.config - contains parameter used for encoding.java.io.IOException - if a problem occurs while writing to the given OutputStream.public void setSegmentPropertiesFlag(GAD_GraphicsData.BeginSegment.SegmentPropertiesFlag flag)
GAD_GraphicsData.BeginSegment.SegmentPropertiesFlag and un-sets corresponding mutual exclusive
flags.flag - GAD_GraphicsData.BeginSegment.SegmentPropertiesFlag to set.public short getCommandCode()
public void setCommandCode(short commandCode)
public short getLengtOfFollowingParameters()
public void setLengtOfFollowingParameters(short lengtOfFollowingParameters)
public java.lang.String getNameOfSegment()
public void setNameOfSegment(java.lang.String nameOfSegment)
public byte getFlagAnyValue()
public void setFlagAnyValue(byte flagAnyValue)
public java.util.EnumSet<GAD_GraphicsData.BeginSegment.SegmentPropertiesFlag> getSegmentPropertiesFlags()
public void setSegmentPropertiesFlags(java.util.EnumSet<GAD_GraphicsData.BeginSegment.SegmentPropertiesFlag> segmentPropertiesFlags)
public int getSegmentDataLength()
public void setSegmentDataLength(int segmentDataLength)
public java.lang.String getNameOfPredecessorSuccessorSegment()
public void setNameOfPredecessorSuccessorSegment(java.lang.String nameOfPredecessorSuccessorSegment)
public java.util.List<GAD_DrawingOrder> getDrawingOrders()
public void setDrawingOrders(java.util.List<GAD_DrawingOrder> drawingOrders)