java.lang.Object | |||
↳ | com.pdftron.filters.Filter | ||
↳ | com.pdftron.filters.CustomFilter | ||
↳ | com.pdftron.filters.SecondaryFileFilter |
This class is used for creating a PDFDoc
from Android content Uri.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.filters.CustomFilter
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SecondaryFileFilter(Context context, Uri treeUri) | |||||||||||
SecondaryFileFilter(Context context, Uri treeUri, int mode) | |||||||||||
SecondaryFileFilter(int mode, SecondaryFileFilter attached) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static SecondaryFileFilter | __Create(long impl, SecondaryFileFilter prev) | ||||||||||
void | cleanup() | ||||||||||
void |
close()
Frees the native memory of the object.
| ||||||||||
SecondaryFileFilter | createOutputIterator() | ||||||||||
void | force(boolean metadata) | ||||||||||
int | getRawSequenceNumber() | ||||||||||
String | getSequenceNumber() | ||||||||||
long | onCreateInputIterator(Object o) | ||||||||||
void | onDestroy(Object o) | ||||||||||
long |
onFlush(Object o)
The abstract function in which the output data is flushed.
| ||||||||||
long |
onRead(byte[] bytes, Object o)
The abstract function in which the input data are read.
| ||||||||||
long |
onSeek(long offset, int origin, Object o)
The abstract function in which the position indicator of the filter is
set.
| ||||||||||
long |
onTell(Object o)
The abstract function in which the position indicator of the filter is
queried.
| ||||||||||
long |
onTruncate(long new_size, Object user_object)
The abstract function the size of the filter is set
| ||||||||||
long |
onWrite(byte[] bytes, Object o)
The abstract function in which the data are output.
| ||||||||||
long |
size()
Returns the size of buffer returned by Begin().
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.pdftron.filters.CustomFilter
| |||||||||||
From class
com.pdftron.filters.Filter
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
java.lang.AutoCloseable
|
FileNotFoundException | |
---|---|
PDFNetException |
FileNotFoundException | |
---|---|
PDFNetException |
IOException | |
---|---|
PDFNetException |
IOException | |
---|---|
PDFNetException |
Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.
IOException |
---|
The abstract function in which the output data is flushed.
o | The user data from passed in via #CustomFilter(int, Object). |
---|
The abstract function in which the input data are read.
bytes | The buffer to contain the data to read, which has already been allocated. |
---|---|
o | The user data from passed in via #CustomFilter(int, Object). |
The abstract function in which the position indicator of the filter is set.
offset | Number of bytes to offset from origin. A positive value implies the indicator is moved forward, and a negative value implies the indicator is moved backward. |
---|---|
origin | Position from where offset is added. It is specified by one of
the following: SEEK_SET ,
SEEK_CUR , SEEK_END . |
o | The user data from passed in via #CustomFilter(int, Object). |
The abstract function in which the position indicator of the filter is queried.
o | The user data from passed in via #CustomFilter(int, Object). |
---|
The abstract function the size of the filter is set
new_size | number of bytes to resize the filter to. |
---|---|
user_object | The user data from passed in via #CustomFilter(int, Object). |
The abstract function in which the data are output.
bytes | The buffer to contain the data to write out. |
---|---|
o | The user data from passed in via #CustomFilter(int, Object). |
Returns the size of buffer returned by Begin(). If the Size() returns 0 end of data has been reached.
PDFNetException |
---|