OutputStreamWriter.h

Go to the documentation of this file.
00001 #ifndef JAVA_IO_OUTPUTSTREAMWRITER_H
00002 #define JAVA_IO_OUTPUTSTREAMWRITER_H 1
00003 
00004 #ifndef JAVA_IO_WRITER_H
00005 #include <java_io/Writer.h>
00006 #endif /* JAVA_IO_WRITER_H */
00007 #ifndef JAVA_IO_OUTPUTSTREAM_H
00008 #include <java_io/OutputStream.h>
00009 #endif /* JAVA_IO_OUTPUTSTREAM_H */
00010 
00011 namespace java {
00012   namespace io {
00013 
00042     class JAVA_IO_SPEC OutputStreamWriter : virtual public Object, virtual public Writer {
00043 
00044     public:
00045 
00055       OutputStreamWriter(const Ref<OutputStream>& out = 0, const String& enc = nilCString);
00056 
00061       const String getEncoding() const;
00062 
00071       virtual void write(jint c);
00072 
00082       virtual void write(const Array<jchar>& b, jint ofs = 0, jint len = -1);
00083 
00093       virtual void write(const String& str, jint off = 0, jint len = -1);
00094 
00100       virtual void flush();
00101 
00107       virtual void close();
00108 
00109     private:
00110 
00111       ObjectRef impl;
00112       REGISTER_MEMBERS;
00113     
00114     };
00115 
00116   } // namespace io
00117 } // namespace java
00118 
00119 #endif /* JAVA_IO_OUTPUTSTREAMWRITER_H */

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