FileOutputStream.h

Go to the documentation of this file.
00001 #ifndef JAVA_IO_FILEOUTPUTSTREAM_H
00002 #define JAVA_IO_FILEOUTPUTSTREAM_H 1
00003 
00004 #ifndef JAVA_IO_OUTPUTSTREAM_H
00005 #include <java_io/OutputStream.h>
00006 #endif /* JAVA_IO_OUTPUTSTREAM_H */
00007 #ifndef JAVA_IO_FILE_H
00008 #include <java_io/File.h>
00009 #endif /* JAVA_IO_FILE_H */
00010 #ifndef JAVA_IO_FILEDESCRIPTOR_H
00011 #include <java_io/FileDescriptor.h>
00012 #endif /* JAVA_IO_FILEDESCRIPTOR_H */
00013 
00014 namespace java {
00015   namespace io {
00016 
00025     class JAVA_IO_SPEC FileOutputStream : virtual public Object, virtual public OutputStream {
00026 
00027     public:
00028   
00039       FileOutputStream(const FileDescriptor& fd = FileDescriptor());
00040 
00048       FileOutputStream(const String& name, jboolean append = false);
00049 
00057       FileOutputStream(const File& file, jboolean append = false);
00058 
00066       virtual void write(jint b);
00067 
00078       virtual void write(const Array<jbyte>& b, jint off = 0, jint len = -1);
00079 
00089       virtual void flush();
00090 
00098       virtual void close();
00099     
00108       FileDescriptor getFD();
00109 
00110     private:
00111 
00112       ObjectRef impl;
00113       REGISTER_MEMBERS;
00114     
00115     };
00116 
00117   } // namespace io
00118 } // namespace java
00119 
00120 #endif /* JFILEOUTPUTSTREAM_H */

Generated on Fri May 16 11:54:43 2008 for CrossPlatformJavaLikeC++API by  doxygen 1.5.3