public final class GraphicsChainedSegment extends AbstractGraphicsDrawingOrderContainer
AbstractAFPObject.Category, AbstractAFPObject.Type| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_DATA_LEN
The maximum segment data length
|
objectsnametripletsLOG, SF_CLASS, SF_HEADER_LENGTH| Constructor and Description |
|---|
GraphicsChainedSegment(String name)
Main constructor
|
GraphicsChainedSegment(String name,
byte[] predecessorNameBytes,
boolean appended,
boolean prologPresent)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getDataLength()
Returns the current data length
|
protected int |
getNameLength()
Returns the name length
|
String |
toString() |
void |
writeToStream(OutputStream os)
DataStream objects must implement the writeToStream()
method to write its data to the given OutputStream
|
addAll, addObject, isComplete, isStarted, removeLast, setComplete, setStarted, writeContent, writeStartcopySF, getName, getNameBytes, setNameaddTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTripletswriteEndcopySF, truncate, writeChunksToStream, writeObjectspublic static final int MAX_DATA_LEN
public GraphicsChainedSegment(String name)
name - the name of this graphics segmentpublic GraphicsChainedSegment(String name, byte[] predecessorNameBytes, boolean appended, boolean prologPresent)
name - the name of this graphics segmentpredecessorNameBytes - the name of the predecessor in this chainappended - true if this segment is appended to the previous oneprologPresent - true if this segment starts with a prologpublic int getDataLength()
getDataLength in interface StructuredDatagetDataLength in class AbstractGraphicsDrawingOrderContainerprotected int getNameLength()
getNameLength in class AbstractNamedAFPObjectpublic void writeToStream(OutputStream os) throws IOException
writeToStream in interface StreamablewriteToStream in class AbstractStructuredObjectos - the outputsteam streamIOException - an I/O exception of some sort has occurred.public String toString()
toString in class AbstractNamedAFPObjectCopyright © 2023 Apache Software Foundation. All rights reserved.