Package org.apache.fop.afp.modca
Class ResourceObject
- java.lang.Object
-
- All Implemented Interfaces:
Streamable
public class ResourceObject extends AbstractNamedAFPObject
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
Fields Modifier and Type Field Description static byte
TYPE_BARCODE
barcode object typestatic byte
TYPE_CODE_PAGE
code page typestatic byte
TYPE_CODED_FONT
coded font typestatic byte
TYPE_DOCUMENT
document object typestatic byte
TYPE_FONT_CHARACTER_SET
font character set typestatic byte
TYPE_FORMDEF
form def typestatic byte
TYPE_GRAPHIC
graphics object typestatic byte
TYPE_IMAGE
image object typestatic byte
TYPE_OBJECT_CONTAINER
object container typestatic byte
TYPE_OVERLAY_OBJECT
overlay object typestatic byte
TYPE_PAGE_SEGMENT
page segment object typestatic byte
TYPE_PAGEDEF
page def type-
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
Constructors Constructor Description ResourceObject(java.lang.String name)
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AbstractNamedAFPObject
getDataObject()
Returns 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 tripletjava.lang.String
toString()
protected void
writeContent(java.io.OutputStream os)
Helper method to write the contents of the Object.protected void
writeEnd(java.io.OutputStream os)
Helper method to write the end of the Object.protected void
writeStart(java.io.OutputStream os)
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 Detail
-
TYPE_GRAPHIC
public static final byte TYPE_GRAPHIC
graphics object type- See Also:
- Constant Field Values
-
TYPE_BARCODE
public static final byte TYPE_BARCODE
barcode object type- See Also:
- Constant Field Values
-
TYPE_IMAGE
public static final byte TYPE_IMAGE
image object type- See Also:
- Constant Field Values
-
TYPE_FONT_CHARACTER_SET
public static final byte TYPE_FONT_CHARACTER_SET
font character set type- See Also:
- Constant Field Values
-
TYPE_CODE_PAGE
public static final byte TYPE_CODE_PAGE
code page type- See Also:
- Constant Field Values
-
TYPE_CODED_FONT
public static final byte TYPE_CODED_FONT
coded font type- See Also:
- Constant Field Values
-
TYPE_OBJECT_CONTAINER
public static final byte TYPE_OBJECT_CONTAINER
object container type- See Also:
- Constant Field Values
-
TYPE_DOCUMENT
public static final byte TYPE_DOCUMENT
document object type- See Also:
- Constant Field Values
-
TYPE_PAGE_SEGMENT
public static final byte TYPE_PAGE_SEGMENT
page segment object type- See Also:
- Constant Field Values
-
TYPE_OVERLAY_OBJECT
public static final byte TYPE_OVERLAY_OBJECT
overlay object type- See Also:
- Constant Field Values
-
TYPE_PAGEDEF
public static final byte TYPE_PAGEDEF
page def type- See Also:
- Constant Field Values
-
TYPE_FORMDEF
public static final byte TYPE_FORMDEF
form def type- See Also:
- Constant Field Values
-
-
Method Detail
-
setDataObject
public void setDataObject(AbstractNamedAFPObject namedObject)
Sets the data object referenced by this resource object- Parameters:
namedObject
- the named data object
-
getDataObject
public AbstractNamedAFPObject getDataObject()
Returns the data object referenced by this resource object- Returns:
- the data object referenced by this resource object
-
writeStart
protected void writeStart(java.io.OutputStream os) throws java.io.IOException
Helper method to write the start of the Object.- Overrides:
writeStart
in classAbstractStructuredObject
- Parameters:
os
- The stream to write to- Throws:
java.io.IOException
- throws an I/O exception if one occurred
-
writeContent
protected void writeContent(java.io.OutputStream os) throws java.io.IOException
Helper method to write the contents of the Object.- Overrides:
writeContent
in classAbstractStructuredObject
- Parameters:
os
- The stream to write to- Throws:
java.io.IOException
- throws an I/O exception if one occurred
-
writeEnd
protected void writeEnd(java.io.OutputStream os) throws java.io.IOException
Helper method to write the end of the Object.- Overrides:
writeEnd
in classAbstractStructuredObject
- Parameters:
os
- The stream to write to- Throws:
java.io.IOException
- an I/O exception if one occurred
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractNamedAFPObject
-
setType
public void setType(byte type)
Sets Resource Object Type triplet- Parameters:
type
- the resource object type
-
-