public class Filter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected Filter |
attached |
protected long |
impl |
protected java.lang.Object |
ref |
| Modifier | Constructor and Description |
|---|---|
protected |
Filter(long impl,
Filter attached) |
| Modifier and Type | Method and Description |
|---|---|
static Filter |
__Create(long impl,
Filter attached) |
long |
__GetHandle() |
void |
__SetRefHandle(java.lang.Object ref) |
void |
attachFilter(Filter attach_filter)
Attaches a filter to the this filter.
|
boolean |
canSeek()
determine whether the stream supports seeking
|
Filter |
createInputIterator()
Create Filter iterator.
|
void |
destroy()
Frees the native memory of the object.
|
protected void |
finalize() |
void |
flush()
Forces any data remaining in the buffer to be written to input or
output filter.
|
void |
flushAll()
Forces any data remaining in the filter chain to the source or destination.
|
Filter |
getAttachedFilter()
Get the attached filter.
|
java.lang.String |
getDecodeName()
Get the decode name.
|
java.lang.String |
getFilePath()
Get the file path.
|
java.lang.String |
getName()
Get the name.
|
Filter |
getSourceFilter()
Get the source filter.
|
boolean |
isInputFilter()
Checks if is input filter.
|
Filter |
releaseAttachedFilter()
Release the ownership of the attached filter.
|
void |
seek(long offset,
int origin)
When overridden in a derived class, sets the position within the current stream.
|
void |
setStreamLength(long bytes)
The functions specifies the length of the data stream.
|
long |
tell()
Reports the current read position in the stream relative to the stream origin.
|
protected long impl
protected Filter attached
protected java.lang.Object ref
protected Filter(long impl,
Filter attached)
public void destroy()
throws PDFNetException
PDFNetExceptionprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwablepublic void attachFilter(Filter attach_filter) throws PDFNetException
attach_filter - the attach_filterPDFNetExceptionpublic Filter releaseAttachedFilter() throws PDFNetException
PDFNetExceptionpublic Filter getAttachedFilter() throws PDFNetException
PDFNetExceptionpublic Filter getSourceFilter() throws PDFNetException
PDFNetExceptionpublic java.lang.String getName()
throws PDFNetException
PDFNetExceptionpublic java.lang.String getDecodeName()
throws PDFNetException
PDFNetExceptionpublic void setStreamLength(long bytes)
throws PDFNetException
bytes - the new stream lengthPDFNetExceptionpublic void flush()
throws PDFNetException
PDFNetExceptionpublic void flushAll()
throws PDFNetException
PDFNetExceptionpublic boolean isInputFilter()
throws PDFNetException
PDFNetExceptionpublic boolean canSeek()
throws PDFNetException
PDFNetExceptionpublic void seek(long offset,
int origin)
throws PDFNetException
offset - - A byte offset relative to origin. If offset is negative,
the new position will precede the position specified by origin by the number
of bytes specified by offset. If offset is zero, the new position will be the
position specified by origin. If offset is positive, the new position will follow
the position specified by origin by the number of bytes specified by offset.origin - - A value of type ReferencePos indicating the reference point used
to obtain the new positionPDFNetExceptionpublic long tell()
throws PDFNetException
PDFNetExceptionpublic Filter createInputIterator() throws PDFNetException
PDFNetExceptionpublic java.lang.String getFilePath()
throws PDFNetException
PDFNetExceptionpublic long __GetHandle()
public void __SetRefHandle(java.lang.Object ref)