|
Foxit PDF SDK
9.1
|
File stream interface, reading & writing.
More...
Public Member Functions | |
| FileStreamCallback | retain () |
| Create a shared instance. More... | |
| void | release () |
| Destroy the current instance. More... | |
| int | getSize () |
| Get the current stream size, in bytes. More... | |
| boolean | isEOF () |
| Determine whether reach the end of stream. More... | |
| int | getPosition () |
| Get the current reading position in stream. More... | |
| boolean | readBlock (byte[] buffer, int offset, long size) |
| Read a data block from stream. More... | |
| long | readBlock (byte[] buffer, long size) |
| Read data block from stream. More... | |
| boolean | writeBlock (byte[] buffer, int offset, long size) |
| Write a block data into stream. More... | |
| boolean | flush () |
| Flush internal buffer. More... | |
File stream interface, reading & writing.
| boolean com.foxit.sdk.common.fxcrt.FileStreamCallback.flush | ( | ) |
Flush internal buffer.
| int com.foxit.sdk.common.fxcrt.FileStreamCallback.getPosition | ( | ) |
Get the current reading position in stream.
| int com.foxit.sdk.common.fxcrt.FileStreamCallback.getSize | ( | ) |
Get the current stream size, in bytes.
| boolean com.foxit.sdk.common.fxcrt.FileStreamCallback.isEOF | ( | ) |
Determine whether reach the end of stream.
| boolean com.foxit.sdk.common.fxcrt.FileStreamCallback.readBlock | ( | byte[] | buffer, |
| int | offset, | ||
| long | size | ||
| ) |
Read a data block from stream.
| [in,out] | buffer | Pointer to a buffer receiving data. |
| [in] | offset | Byte offset from beginning of the file, the position to read data. |
| [in] | size | Number of bytes to be read from stream. |
| long com.foxit.sdk.common.fxcrt.FileStreamCallback.readBlock | ( | byte[] | buffer, |
| long | size | ||
| ) |
Read data block from stream.
| [in,out] | buffer | Buffer to store data. |
| [in] | size | Total size of buffer, in bytes. |
| void com.foxit.sdk.common.fxcrt.FileStreamCallback.release | ( | ) |
Destroy the current instance.
| FileStreamCallback com.foxit.sdk.common.fxcrt.FileStreamCallback.retain | ( | ) |
Create a shared instance.
| boolean com.foxit.sdk.common.fxcrt.FileStreamCallback.writeBlock | ( | byte[] | buffer, |
| int | offset, | ||
| long | size | ||
| ) |
Write a block data into stream.
| [in] | buffer | Pointer to the data block. |
| [in] | offset | Byte offset from beginning of the file, the position to write data. |
| [in] | size | The length in bytes of the buffer. |