Completable
, Startable
, Streamable
, StructuredData
public final class GraphicsChainedSegment extends AbstractGraphicsDrawingOrderContainer
AbstractAFPObject.Category, AbstractAFPObject.Type
Modifier and Type | Field | Description |
---|---|---|
static int |
MAX_DATA_LEN |
The maximum segment data length
|
LOG, SF_CLASS, SF_HEADER_LENGTH
objects
name
triplets
Constructor | Description |
---|---|
GraphicsChainedSegment(java.lang.String name) |
Main constructor
|
GraphicsChainedSegment(java.lang.String name,
byte[] predecessorNameBytes,
boolean appended,
boolean prologPresent) |
Constructor
|
Modifier and Type | Method | Description |
---|---|---|
int |
getDataLength() |
Returns the current data length
|
protected int |
getNameLength() |
Returns the name length
|
java.lang.String |
toString() |
|
void |
writeToStream(java.io.OutputStream os) |
DataStream objects must implement the writeToStream()
method to write its data to the given OutputStream
|
copySF, truncate, writeChunksToStream, writeObjects
addAll, addObject, isComplete, isStarted, removeLast, setComplete, setStarted, writeContent, writeStart
copySF, getName, getNameBytes, setName
writeEnd
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
public static final int MAX_DATA_LEN
public GraphicsChainedSegment(java.lang.String name)
name
- the name of this graphics segmentpublic GraphicsChainedSegment(java.lang.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 StructuredData
getDataLength
in class AbstractGraphicsDrawingOrderContainer
protected int getNameLength()
getNameLength
in class AbstractNamedAFPObject
public void writeToStream(java.io.OutputStream os) throws java.io.IOException
writeToStream
in interface Streamable
writeToStream
in class AbstractStructuredObject
os
- the outputsteam streamjava.io.IOException
- an I/O exception of some sort has occurred.public java.lang.String toString()
toString
in class AbstractNamedAFPObject
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.