public class ResourceObject extends AbstractNamedAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type
Modifier and Type | Field and Description |
---|---|
static byte |
TYPE_BARCODE
barcode object type
|
static byte |
TYPE_CODE_PAGE
code page type
|
static byte |
TYPE_CODED_FONT
coded font type
|
static byte |
TYPE_DOCUMENT
document object type
|
static byte |
TYPE_FONT_CHARACTER_SET
font character set type
|
static byte |
TYPE_FORMDEF
form def type
|
static byte |
TYPE_GRAPHIC
graphics object type
|
static byte |
TYPE_IMAGE
image object type
|
static byte |
TYPE_OBJECT_CONTAINER
object container type
|
static byte |
TYPE_OVERLAY_OBJECT
overlay object type
|
static byte |
TYPE_PAGE_SEGMENT
page segment object type
|
static byte |
TYPE_PAGEDEF
page def type
|
name
triplets
LOG, SF_CLASS, SF_HEADER_LENGTH
Constructor and Description |
---|
ResourceObject(java.lang.String name)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
AbstractNamedAFPObject |
getDataObject()
Returns the data object referenced by this resource object
|
void |
setDataObject(AbstractNamedAFPObject namedObject)
Sets the data object referenced by this resource object
|
void |
setType(byte type)
Sets Resource Object Type triplet
|
java.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.
|
copySF, getName, getNameBytes, getNameLength, setName
addTriplet, addTriplets, getFullyQualifiedName, getTripletDataLength, getTriplets, hasTriplet, hasTriplets, setComment, setFullyQualifiedName, setFullyQualifiedName, setObjectClassification, writeTriplets
writeToStream
copySF, truncate, writeChunksToStream, writeObjects
public static final byte TYPE_GRAPHIC
public static final byte TYPE_BARCODE
public static final byte TYPE_IMAGE
public static final byte TYPE_FONT_CHARACTER_SET
public static final byte TYPE_CODE_PAGE
public static final byte TYPE_CODED_FONT
public static final byte TYPE_OBJECT_CONTAINER
public static final byte TYPE_DOCUMENT
public static final byte TYPE_PAGE_SEGMENT
public static final byte TYPE_OVERLAY_OBJECT
public static final byte TYPE_PAGEDEF
public static final byte TYPE_FORMDEF
public ResourceObject(java.lang.String name)
name
- the name of this resource (reference id)public void setDataObject(AbstractNamedAFPObject namedObject)
namedObject
- the named data objectpublic AbstractNamedAFPObject getDataObject()
protected void writeStart(java.io.OutputStream os) throws java.io.IOException
writeStart
in class AbstractStructuredObject
os
- The stream to write tojava.io.IOException
- throws an I/O exception if one occurredprotected void writeContent(java.io.OutputStream os) throws java.io.IOException
writeContent
in class AbstractStructuredObject
os
- The stream to write tojava.io.IOException
- throws an I/O exception if one occurredprotected void writeEnd(java.io.OutputStream os) throws java.io.IOException
writeEnd
in class AbstractStructuredObject
os
- The stream to write tojava.io.IOException
- an I/O exception if one occurredpublic java.lang.String toString()
toString
in class AbstractNamedAFPObject
public void setType(byte type)
type
- the resource object typeCopyright 1999-2017 The Apache Software Foundation. All Rights Reserved.