SignDoc SDK (C++)  5.0.0
FileOutputStream Class Reference

Class implementing an OutputStream writing to a file. More...

#include <SignDocSDK-cpp.h>

Inheritance diagram for FileOutputStream:
LibraryOutputStream OutputStream

Public Member Functions

 FileOutputStream (FILE *aFile)
 Constructor: Write to a C stream. More...
 
 FileOutputStream (FILE *aFile, const char *aPath)
 Constructor: Write to a C stream. More...
 
 FileOutputStream (const char *aPath)
 Constructor: Open a file in binary mode. More...
 
 FileOutputStream (const wchar_t *aPath)
 Constructor: Open a file in binary mode. More...
 
- Public Member Functions inherited from LibraryOutputStream
 LibraryOutputStream (SIGNDOC_OutputStream *aImpl)
 Constructor. More...
 
virtual void close ()
 Close the stream. More...
 
virtual void flush ()
 Flush the stream. More...
 
virtual void write (const void *aSrc, int aLen)
 Write octets to the stream. More...
 
virtual void seek (int aPos)
 Seek to the specified position. More...
 
virtual int tell () const
 Retrieve the current position. More...
 
- Public Member Functions inherited from OutputStream
 OutputStream (SIGNDOC_OutputStream *aImpl)
 Constructor. More...
 
virtual ~OutputStream ()
 Destructor. More...
 
SIGNDOC_OutputStream * getImpl ()
 Internal. More...
 

Additional Inherited Members

- Protected Attributes inherited from OutputStream
SIGNDOC_OutputStream * p
 Pointer to C structure. More...
 

Detailed Description

Class implementing an OutputStream writing to 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.

Constructor & Destructor Documentation

FileOutputStream ( FILE *  aFile)
inline

Constructor: Write to a C stream.

Parameters
[in]aFileThe C stream to be wrapped.
FileOutputStream ( FILE *  aFile,
const char *  aPath 
)
inline

Constructor: Write to a C stream.

Parameters
[in]aFileThe C stream to be wrapped.
[in]aPathThe pathname (native encoding), used in exceptions, can be NULL.
FileOutputStream ( const char *  aPath)
inline

Constructor: Open a file in binary mode.

If the named file already exists, it will be truncated. Throws an exception on error.

Parameters
[in]aPathThe pathname of the file to be opened (native encoding).
FileOutputStream ( const wchar_t *  aPath)
inline

Constructor: Open a file in binary mode.

If the named file already exists, it will be truncated. Throws an exception on error.

Parameters
[in]aPathThe pathname of the file to be opened.

The documentation for this class was generated from the following file: