SignDoc SDK (C++)
5.0.0
|
Class implementing an InputStream reading from a file. More...
#include <SignDocSDK-cpp.h>
Public Member Functions | |
FileInputStream (FILE *aFile) | |
Constructor: Read from a C stream. More... | |
FileInputStream (FILE *aFile, const char *aPath) | |
Constructor: Read from a C stream. More... | |
FileInputStream (const char *aPath) | |
Constructor: Open a file in binary mode. More... | |
FileInputStream (const wchar_t *aPath) | |
Constructor: Open a file in binary mode. More... | |
Public Member Functions inherited from LibraryInputStream | |
LibraryInputStream (SIGNDOC_InputStream *aImpl) | |
Constructor. More... | |
virtual int | read (void *aDst, int aLen) |
Read octets from source. More... | |
virtual void | close () |
Close the stream. More... | |
virtual void | seek (int aPos) |
Seek to the specified position (int). More... | |
virtual int | tell () const |
Retrieve the current position (int). More... | |
virtual int | getAvailable () |
Get an estimate of the number of octets available for reading. More... | |
Public Member Functions inherited from InputStream | |
InputStream (SIGNDOC_InputStream *aImpl) | |
Constructor. More... | |
virtual | ~InputStream () |
Destructor. More... | |
SIGNDOC_InputStream * | getImpl () |
Internal. More... | |
Additional Inherited Members | |
Protected Attributes inherited from InputStream | |
SIGNDOC_InputStream * | p |
Pointer to C structure. More... | |
Class implementing an InputStream reading from a file.
If possible, any exception thrown by member functions of this class contain the pathname. Note that the pathname will be UTF-8 encoded.
|
inline |
Constructor: Read from a C stream.
[in] | aFile | The C stream to be wrapped. |
|
inline |
Constructor: Read from a C stream.
[in] | aFile | The C stream to be wrapped. |
[in] | aPath | The pathname (native encoding), used in exceptions, can be NULL. |
|
inline |
Constructor: Open a file in binary mode.
Throws an exception on error.
[in] | aPath | The pathname of the file to be opened (native encoding). |
|
inline |
Constructor: Open a file in binary mode.
Throws an exception on error.
[in] | aPath | The pathname of the file to be opened. |