|
fop svn-trunk | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.afp.modca.AbstractAFPObject
public abstract class AbstractAFPObject
This is the base class for all data stream objects. Page objects are responsible for building and generating the binary datastream in an AFP format.
| Nested Class Summary | |
|---|---|
static interface |
AbstractAFPObject.Category
structured field category codes |
static interface |
AbstractAFPObject.Type
structured field type codes |
| Field Summary | |
|---|---|
protected static org.apache.commons.logging.Log |
log
Static logging instance |
protected static byte |
SF_CLASS
the structured field class id |
| Constructor Summary | |
|---|---|
AbstractAFPObject()
|
|
| Method Summary | |
|---|---|
protected static void |
copyChunks(byte[] dataHeader,
int lengthOffset,
int maxChunkLength,
java.io.InputStream inputStream,
java.io.OutputStream outputStream)
Reads data chunks from an InputStream and then formats them with a structured header to a given OutputStream |
protected void |
copySF(byte[] data,
byte type,
byte category)
Copies the template structured field data array to the given byte array |
protected static void |
copySF(byte[] data,
byte clazz,
byte type,
byte category)
Copies the template structured field data array to the given byte array |
protected static void |
writeChunksToStream(byte[] data,
byte[] dataHeader,
int lengthOffset,
int maxChunkLength,
java.io.OutputStream os)
Writes data chunks to a given outputstream |
protected void |
writeObjects(java.util.Collection objects,
java.io.OutputStream os)
Writes a collection of Streamable to the AFP Datastream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.fop.afp.Streamable |
|---|
writeToStream |
| Field Detail |
|---|
protected static final org.apache.commons.logging.Log log
protected static final byte SF_CLASS
| Constructor Detail |
|---|
public AbstractAFPObject()
| Method Detail |
|---|
protected void copySF(byte[] data,
byte type,
byte category)
data - the structured field data byte arraytype - the type codecategory - the category code
protected static void copySF(byte[] data,
byte clazz,
byte type,
byte category)
data - the structured field data byte arrayclazz - the class codetype - the type codecategory - the category code
protected void writeObjects(java.util.Collection objects,
java.io.OutputStream os)
throws java.io.IOException
objects - a list of AFPObjectsos - The stream to write to
java.io.IOException - an I/O exception of some sort has occurred.
protected static void copyChunks(byte[] dataHeader,
int lengthOffset,
int maxChunkLength,
java.io.InputStream inputStream,
java.io.OutputStream outputStream)
throws java.io.IOException
dataHeader - the header datalengthOffset - offset of length field in data chunkmaxChunkLength - the maximum chunk lengthinputStream - the InputStream to read fromoutputStream - the OutputStream to write to
java.io.IOException - thrown if an I/O exception of some sort has occurred.
protected static void writeChunksToStream(byte[] data,
byte[] dataHeader,
int lengthOffset,
int maxChunkLength,
java.io.OutputStream os)
throws java.io.IOException
data - the data byte arraydataHeader - the header datalengthOffset - offset of length field in data chunkmaxChunkLength - the maximum chunk lengthos - the outputstream to write to
java.io.IOException - thrown if an I/O exception of some sort has occurred.
|
fop svn-trunk | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||