CharArrayWriter.h

Go to the documentation of this file.
00001 #ifndef JAVA_IO_CHARARRAYWRITER_H
00002 #define JAVA_IO_CHARARRAYWRITER_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 
00020     class JAVA_IO_SPEC CharArrayWriter : virtual public Object, virtual public Writer {
00021 
00022     public:
00023   
00030       CharArrayWriter(jint initialSize = 32);
00031 
00035       virtual void write(jint b);
00036 
00043       virtual void write(const Array<jchar>& b, jint off = 0, jint len = -1);
00044 
00054       virtual void write(const String& str, jint off = 0, jint len = -1);
00055 
00062       virtual void writeTo(Writer& out) const;
00063 
00068       virtual void reset();
00069 
00076       virtual Array<jchar> toCharArray() const;
00077 
00083       virtual jint size() const;
00084 
00089       virtual String toString() const;
00090 
00091     private:
00092   
00093       ObjectRef impl;
00094       REGISTER_MEMBERS;
00095     
00096     };
00097 
00098   } // namespace io
00099 } // namespace java
00100 
00101 #endif /* JAVA_IO_CHARARRAYWRITER_H */

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