public class GAD_GraphicsData extends StructuredField
The graphics segments for a graphics object are contained within one or more GAD structured fields. Receipt of the first segment starts the drawing process. No restrictions exist on how much or how little graphics data is specified in a single GAD, except for the length limit of the structured field. A GAD, for example, can carry partial segments, full segments, multiple segments, or any combination of these. The only requirement is that the data itself is ordered in the sequence that is expected for immediate processing and that the last GAD completes the last segment. Because this environment does not support the calling of segments, all segments should be chained segments. Any unchained segments in the data are ignored. The GAD structured field is optional in a MO:DCA graphics object and may be repeated multiple times.
| Modifier and Type | Class and Description |
|---|---|
static class |
GAD_GraphicsData.BeginSegment |
| Constructor and Description |
|---|
GAD_GraphicsData() |
| 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. |
void |
writeAFP(java.io.OutputStream os,
AFPParserConfiguration config)
Writes the object to the given os encoded as AFP data.
|
checkDataLength, getActualLength, getPadding, getStructuredFieldIntroducer, isBeginSF, isEndSF, isShallow, setPadding, setStructuredFieldIntroducer, toString, writeFullStructuredFieldpublic void decodeAFP(byte[] sfData,
int offset,
int length,
AFPParserConfiguration config)
throws AFPParserException
IAFPDecodeableWriteabledecodeAFP in interface IAFPDecodeableWriteabledecodeAFP in class StructuredFieldsfData - 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 IAFPDecodeableWriteablewriteAFP in class StructuredFieldos - OutputStream to write to.config - contains parameter used for encoding.java.io.IOException - if a problem occurs while writing to the given OutputStream.