FilterWriter.h

Go to the documentation of this file.
00001 #ifndef JAVA_IO_FILTERWRITER_H
00002 #define JAVA_IO_FILTERWRITER_H 1
00003 
00004 #ifndef JAVA_IO_WRITER_H
00005 #include <java_io/Writer.h>
00006 #endif /* JAVA_IO_WRITER_H */
00007 
00008 namespace java {
00009   namespace io {
00010 
00023     class JAVA_IO_SPEC FilterWriter : virtual public Object, virtual public Writer {
00024 
00025     public:
00026   
00032       FilterWriter(const Ref<Writer>& out = 0);
00033 
00039       virtual void write(jint b);
00040 
00050       virtual void write(const Array<jchar>& b, jint off = 0, jint len = -1);
00051 
00061       virtual void write(const String& str, jint off = 0, jint len = -1);
00062 
00068       virtual void flush();
00069 
00075       virtual void close();
00076 
00077     protected:
00078 
00082       Ref<Writer> out;
00083 
00084     private:
00085   
00086       REGISTER_MEMBERS;
00087     
00088     };
00089 
00090   } // namespace io
00091 } // namespace java
00092 
00093 #endif /* JAVA_IO_FILTERWRITER_H */

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