Foxit PDF SDK
IFX_FileRead Class Referenceabstract

File reading interface. More...

Inheritance diagram for IFX_FileRead:
IFX_StreamRead foxit::common::file::AsyncReaderCallback IFX_FileStream CFX_CachedFileRead IFX_ChunkFileStream IFX_MemoryStream

Public Member Functions

virtual void ClearRange ()
 Clear accessing range set by function IFX_FileRead::SetRange. More...
 
virtual FX_INT64 GetPosition ()
 Get the current reading position in stream. More...
 
virtual FX_INT64 GetSize ()=0
 Get total size of the file. More...
 
virtual FX_BOOL IsEOF ()
 Determine whether reach the end of stream. More...
 
virtual FX_BOOL ReadBlock (void *buffer, FX_INT64 offset, size_t size)=0
 Read a data block from the file. More...
 
virtual size_t ReadBlock (void *buffer, size_t size)
 Read data block from stream. More...
 
virtual void Release ()=0
 Called when to release everything. More...
 
virtual FX_INT64 SetPosition (FX_INT64 pos)
 Set the current file accessing position. More...
 
virtual FX_BOOL SetRange (FX_INT64 offset, FX_INT64 size)
 Set accessing range. More...
 

Detailed Description

File reading interface.