public class AFPStreamer extends Object implements Streamable
| Constructor and Description |
|---|
AFPStreamer(Factory factory,
InternalResourceResolver resourceResolver)
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 |
setDefaultResourceGroupUri(URI uri)
Sets the default resource group URI.
|
void |
setOutputStream(OutputStream outputStream)
Sets the final outputstream
|
void |
writeToStream(OutputStream os)
DataStream objects must implement the writeToStream()
method to write its data to the given OutputStream
|
public AFPStreamer(Factory factory, InternalResourceResolver resourceResolver)
factory - a factoryresourceResolver - resource resolverpublic DataStream createDataStream(AFPPaintingState paintingState) throws IOException
paintingState - the AFP painting stateDataStreamIOException - thrown if an I/O exception of some sort has occurredpublic void setDefaultResourceGroupUri(URI uri)
uri - the default resource group URIpublic ResourceGroup getResourceGroup(AFPResourceLevel level)
level - a resource levelpublic void close()
throws IOException
IOException - if an an I/O exception of some sort has occurredpublic void setOutputStream(OutputStream outputStream)
outputStream - an outputstreampublic void writeToStream(OutputStream os) throws IOException
writeToStream in interface Streamableos - the outputsteam streamIOException - an I/O exception of some sort has occurred.Copyright © 2025 Apache Software Foundation. All rights reserved.