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 byteTYPE_BARCODEbarcode object typestatic byteTYPE_CODE_PAGEcode page typestatic byteTYPE_CODED_FONTcoded font typestatic byteTYPE_DOCUMENTdocument object typestatic byteTYPE_FONT_CHARACTER_SETfont character set typestatic byteTYPE_FORMDEFform def typestatic byteTYPE_GRAPHICgraphics object typestatic byteTYPE_IMAGEimage object typestatic byteTYPE_OBJECT_CONTAINERobject container typestatic byteTYPE_OVERLAY_OBJECToverlay object typestatic byteTYPE_PAGE_SEGMENTpage segment object typestatic byteTYPE_PAGEDEFpage 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 AbstractNamedAFPObjectgetDataObject()Returns 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 tripletjava.lang.StringtoString()protected voidwriteContent(java.io.OutputStream os)Helper method to write the contents of the Object.protected voidwriteEnd(java.io.OutputStream os)Helper method to write the end of the Object.protected voidwriteStart(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.IOExceptionHelper method to write the start of the Object.- Overrides:
writeStartin 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.IOExceptionHelper method to write the contents of the Object.- Overrides:
writeContentin 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.IOExceptionHelper method to write the end of the Object.- Overrides:
writeEndin 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:
toStringin classAbstractNamedAFPObject
-
setType
public void setType(byte type)
Sets Resource Object Type triplet- Parameters:
type- the resource object type
-
-