Package org.apache.fop.afp.modca
Class ResourceObject
- All Implemented Interfaces:
Streamable
This resource structured field begins an envelope that is used to carry
resource objects in print-file-level (external) resource groups.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.fop.afp.modca.AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final bytebarcode object typestatic final bytecode page typestatic final bytecoded font typestatic final bytedocument object typestatic final bytefont character set typestatic final byteform def typestatic final bytegraphics object typestatic final byteimage object typestatic final byteobject container typestatic final byteoverlay object typestatic final bytepage segment object typestatic final bytepage def typeFields inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject
nameFields inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject
tripletsFields inherited from class org.apache.fop.afp.modca.AbstractAFPObject
LOG, SF_CLASS, SF_HEADER_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the data object referenced by this resource objectvoidsetDataObject(AbstractNamedAFPObject namedObject) Sets the data object referenced by this resource objectvoidsetType(byte type) Sets Resource Object Type triplettoString()protected voidHelper method to write the contents of the Object.protected voidwriteEnd(OutputStream os) Helper method to write the end of the Object.protected voidHelper method to write the start of the Object.Methods inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject
copySF, getName, getNameBytes, getNameLength, setNameMethods inherited from class org.apache.fop.afp.modca.AbstractTripletStructuredObject
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTripletsMethods inherited from class org.apache.fop.afp.modca.AbstractStructuredObject
writeToStreamMethods inherited from class org.apache.fop.afp.modca.AbstractAFPObject
copySF, truncate, writeChunksToStream, writeObjects
-
Field Details
-
TYPE_GRAPHIC
public static final byte TYPE_GRAPHICgraphics object type- See Also:
-
TYPE_BARCODE
public static final byte TYPE_BARCODEbarcode object type- See Also:
-
TYPE_IMAGE
public static final byte TYPE_IMAGEimage object type- See Also:
-
TYPE_FONT_CHARACTER_SET
public static final byte TYPE_FONT_CHARACTER_SETfont character set type- See Also:
-
TYPE_CODE_PAGE
public static final byte TYPE_CODE_PAGEcode page type- See Also:
-
TYPE_CODED_FONT
public static final byte TYPE_CODED_FONTcoded font type- See Also:
-
TYPE_OBJECT_CONTAINER
public static final byte TYPE_OBJECT_CONTAINERobject container type- See Also:
-
TYPE_DOCUMENT
public static final byte TYPE_DOCUMENTdocument object type- See Also:
-
TYPE_PAGE_SEGMENT
public static final byte TYPE_PAGE_SEGMENTpage segment object type- See Also:
-
TYPE_OVERLAY_OBJECT
public static final byte TYPE_OVERLAY_OBJECToverlay object type- See Also:
-
TYPE_PAGEDEF
public static final byte TYPE_PAGEDEFpage def type- See Also:
-
TYPE_FORMDEF
public static final byte TYPE_FORMDEFform def type- See Also:
-
-
Constructor Details
-
ResourceObject
Default constructor- Parameters:
name- the name of this resource (reference id)
-
-
Method Details
-
setDataObject
Sets the data object referenced by this resource object- Parameters:
namedObject- the named data object
-
getDataObject
Returns the data object referenced by this resource object- Returns:
- the data object referenced by this resource object
-
writeStart
Helper method to write the start of the Object.- Overrides:
writeStartin classAbstractStructuredObject- Parameters:
os- The stream to write to- Throws:
IOException- throws an I/O exception if one occurred
-
writeContent
Helper method to write the contents of the Object.- Overrides:
writeContentin classAbstractStructuredObject- Parameters:
os- The stream to write to- Throws:
IOException- throws an I/O exception if one occurred
-
writeEnd
Helper method to write the end of the Object.- Overrides:
writeEndin classAbstractStructuredObject- Parameters:
os- The stream to write to- Throws:
IOException- an I/O exception if one occurred
-
toString
- Overrides:
toStringin classAbstractNamedAFPObject
-
setType
public void setType(byte type) Sets Resource Object Type triplet- Parameters:
type- the resource object type
-