Package org.apache.fop.afp.goca
Class GraphicsChainedSegment
- All Implemented Interfaces:
Completable
,Startable
,Streamable
,StructuredData
A GOCA graphics segment
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.fop.afp.modca.AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type
-
Field Summary
Fields inherited from class org.apache.fop.afp.goca.AbstractGraphicsDrawingOrderContainer
objects
Fields inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject
name
Fields inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject
triplets
Fields inherited from class org.apache.fop.afp.modca.AbstractAFPObject
LOG, SF_CLASS, SF_HEADER_LENGTH
-
Constructor Summary
ConstructorDescriptionGraphicsChainedSegment
(String name) Main constructorGraphicsChainedSegment
(String name, byte[] predecessorNameBytes, boolean appended, boolean prologPresent) Constructor -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the current data lengthprotected int
Returns the name lengthtoString()
void
DataStream objects must implement the writeToStream() method to write its data to the given OutputStreamMethods inherited from class org.apache.fop.afp.goca.AbstractGraphicsDrawingOrderContainer
addAll, addObject, isComplete, isStarted, removeLast, setComplete, setStarted, writeContent, writeStart
Methods inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject
copySF, getName, getNameBytes, setName
Methods inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
Methods inherited from class org.apache.fop.afp.modca.AbstractStructuredObject
writeEnd
Methods inherited from class org.apache.fop.afp.modca.AbstractAFPObject
copySF, truncate, writeChunksToStream, writeObjects
-
Field Details
-
MAX_DATA_LEN
public static final int MAX_DATA_LENThe maximum segment data length- See Also:
-
-
Constructor Details
-
GraphicsChainedSegment
Main constructor- Parameters:
name
- the name of this graphics segment
-
GraphicsChainedSegment
public GraphicsChainedSegment(String name, byte[] predecessorNameBytes, boolean appended, boolean prologPresent) Constructor- Parameters:
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 prolog
-
-
Method Details
-
getDataLength
public int getDataLength()Returns the current data length- Specified by:
getDataLength
in interfaceStructuredData
- Overrides:
getDataLength
in classAbstractGraphicsDrawingOrderContainer
- Returns:
- the current data length of this container including all enclosed objects (and their containers)
-
getNameLength
protected int getNameLength()Returns the name length- Overrides:
getNameLength
in classAbstractNamedAFPObject
- Returns:
- the name length
-
writeToStream
DataStream objects must implement the writeToStream() method to write its data to the given OutputStream- Specified by:
writeToStream
in interfaceStreamable
- Overrides:
writeToStream
in classAbstractStructuredObject
- Parameters:
os
- the outputsteam stream- Throws:
IOException
- an I/O exception of some sort has occurred.
-
toString
- Overrides:
toString
in classAbstractNamedAFPObject
-