public class MemoryFilter extends Filter
Constructor and Description |
---|
MemoryFilter(long buf_sz,
boolean is_input)
Instantiates a new memory filter with specified buffer size.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
getBuffer()
Get the memory buffer
|
void |
setAsInputFilter()
Set the MemoryBuffer as input filter
|
__Create, __GetHandle, __SetRefHandle, attachFilter, canSeek, createInputIterator, destroy, flush, flushAll, getAttachedFilter, getDecodeName, getFilePath, getName, getSourceFilter, isInputFilter, releaseAttachedFilter, seek, setStreamLength, tell, writeToFile
public MemoryFilter(long buf_sz, boolean is_input) throws PDFNetException
buf_sz
- the buffer sizeis_input
- determine whether the MemoryFilter is input or notPDFNetException
public byte[] getBuffer() throws PDFNetException
Note: MemoryFilter specific function.
PDFNetException
public void setAsInputFilter() throws PDFNetException
Note: MemoryFilter specific function used to change filter mode from output to input. The utility function is usefull in cases when and output data buffer should be converted to an input stream.
Note: The function has no effect on an input MemoryFilter.
PDFNetException