Foxit PDF SDK
|
File stream interface, reading & writing. More...
Public Member Functions | |
boolean | flush () |
Flush internal buffer. More... | |
long | getPosition () |
Get the current reading position in stream. More... | |
long | getSize () |
Get the current stream size, in bytes. More... | |
boolean | isEOF () |
Determine whether reach the end of stream. More... | |
boolean | readBlock (byte[] buffer, long offset, long size) |
Read a data block from stream. More... | |
long | readBlock (byte[] buffer, long size) |
Read data block from stream. More... | |
void | release () |
Destroy the current instance. More... | |
StreamCallback | retain () |
Create a shared instance. More... | |
boolean | writeBlock (byte[] buffer, long offset, long size) |
Write a block data into stream. More... | |
File stream interface, reading & writing.
boolean com.foxit.sdk.common.fxcrt.StreamCallback.flush | ( | ) |
Flush internal buffer.
long com.foxit.sdk.common.fxcrt.StreamCallback.getPosition | ( | ) |
Get the current reading position in stream.
long com.foxit.sdk.common.fxcrt.StreamCallback.getSize | ( | ) |
Get the current stream size, in bytes.
boolean com.foxit.sdk.common.fxcrt.StreamCallback.isEOF | ( | ) |
Determine whether reach the end of stream.
boolean com.foxit.sdk.common.fxcrt.StreamCallback.readBlock | ( | byte [] | buffer, |
long | 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.StreamCallback.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.StreamCallback.release | ( | ) |
Destroy the current instance.
StreamCallback com.foxit.sdk.common.fxcrt.StreamCallback.retain | ( | ) |
Create a shared instance.
boolean com.foxit.sdk.common.fxcrt.StreamCallback.writeBlock | ( | byte [] | buffer, |
long | 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. |