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
Modifier and TypeFieldDescriptionstatic final byte
barcode object typestatic final byte
code page typestatic final byte
coded font typestatic final byte
document object typestatic final byte
font character set typestatic final byte
form def typestatic final byte
graphics object typestatic final byte
image object typestatic final byte
object container typestatic final byte
overlay object typestatic final byte
page segment object typestatic final byte
page def typeFields 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
-
Method Summary
Modifier and TypeMethodDescriptionReturns the data object referenced by this resource objectvoid
setDataObject
(AbstractNamedAFPObject namedObject) Sets the data object referenced by this resource objectvoid
setType
(byte type) Sets Resource Object Type triplettoString()
protected void
Helper method to write the contents of the Object.protected void
writeEnd
(OutputStream os) Helper method to write the end of the Object.protected void
Helper method to write the start of the Object.Methods inherited from class org.apache.fop.afp.modca.AbstractNamedAFPObject
copySF, getName, getNameBytes, getNameLength, 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
writeToStream
Methods 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:
writeStart
in 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:
writeContent
in 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:
writeEnd
in classAbstractStructuredObject
- Parameters:
os
- The stream to write to- Throws:
IOException
- an I/O exception if one occurred
-
toString
- Overrides:
toString
in classAbstractNamedAFPObject
-
setType
public void setType(byte type) Sets Resource Object Type triplet- Parameters:
type
- the resource object type
-