public class AFPStreamer extends java.lang.Object implements Streamable
| Constructor and Description |
|---|
AFPStreamer(Factory factory)
Main constructor
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public AFPStreamer(Factory factory)
factory - a factorypublic DataStream createDataStream(AFPPaintingState paintingState) throws java.io.IOException
paintingState - the AFP painting stateDataStreamjava.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 levelpublic 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 outputstreampublic void writeToStream(java.io.OutputStream os)
throws java.io.IOException
writeToStream in interface Streamableos - the outputsteam streamjava.io.IOException - an I/O exception of some sort has occurred.Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.