FileOutputStream.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00023 #ifndef _CLASS_BEE_IO_FILEOUTPUTSTREAM_H
00024 #define _CLASS_BEE_IO_FILEOUTPUTSTREAM_H
00025
00026 #ifdef __cplusplus
00027
00028 #include "beecrypt/c++/io/OutputStream.h"
00029 using beecrypt::io::OutputStream;
00030
00031 namespace beecrypt {
00032 namespace io {
00035 class BEECRYPTCXXAPI FileOutputStream : public OutputStream
00036 {
00037 private:
00038 FILE* _f;
00039
00040 public:
00041 FileOutputStream(FILE* f);
00042 virtual ~FileOutputStream();
00043
00044 virtual void close() throw (IOException);
00045 virtual void flush() throw (IOException);
00046 virtual void write(byte b) throw (IOException);
00047 virtual void write(const byte* data, int offset, int length) throw (IOException);
00048 virtual void write(const bytearray& b) throw (IOException);
00049 };
00050 }
00051 }
00052
00053 #endif
00054
00055 #endif