|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.fop.afp.AFPStreamer
public class AFPStreamer
Manages the streaming of the AFP output
| Constructor Summary | |
|---|---|
AFPStreamer(Factory factory)
Main constructor |
|
| Method Summary | |
|---|---|
void |
close()
Closes off the AFP stream writing the document stream |
DataStream |
createDataStream(AFPPaintingState paintingState)
Creates a new DataStream |
ResourceGroup |
getResourceGroup(AFPResourceLevel level)
Returns the resource group for a given resource info |
void |
setDefaultResourceGroupFilePath(java.lang.String filePath)
Sets the default resource group file path |
void |
setOutputStream(java.io.OutputStream outputStream)
Sets the final outputstream |
void |
writeToStream(java.io.OutputStream os)
DataStream objects must implement the writeToStream() method to write its data to the given OutputStream |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AFPStreamer(Factory factory)
factory - a factory| Method Detail |
|---|
public DataStream createDataStream(AFPPaintingState paintingState)
throws java.io.IOException
paintingState - the AFP painting state
DataStream
java.io.IOException - thrown if an I/O exception of some sort has occurredpublic void setDefaultResourceGroupFilePath(java.lang.String filePath)
filePath - the default resource group file pathpublic ResourceGroup getResourceGroup(AFPResourceLevel level)
level - a resource level
public void close()
throws java.io.IOException
java.io.IOException - if an an I/O exception of some sort has occurredpublic void setOutputStream(java.io.OutputStream outputStream)
outputStream - an outputstream
public void writeToStream(java.io.OutputStream os)
throws java.io.IOException
writeToStream in interface Streamableos - the outputsteam stream
java.io.IOException - an I/O exception of some sort has occurred.
|
fop 1.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||