PrintStream.h

Go to the documentation of this file.
00001 #ifndef JAVA_IO_PRINTSTREAM_H
00002 #define JAVA_IO_PRINTSTREAM_H 1
00003 
00004 #ifndef JAVA_IO_OUTPUTSTREAM_H
00005 #include <java_io/OutputStream.h>
00006 #endif /* JAVA_IO_OUTPUTSTREAM_H */
00007 
00008 namespace java {
00009   namespace io {
00010 
00034     class JAVA_IO_SPEC PrintStream : virtual public Object, virtual public OutputStream {
00035 
00036     public:
00037   
00054       PrintStream(const Ref<OutputStream>& out = 0, jboolean autoFlush = false, const String& enc = nilCString);
00055 
00063       virtual void write(jint b);
00064 
00075       virtual void write(const Array<jbyte>& b, jint off = 0, jint len = -1);
00076 
00086       virtual void flush();
00087 
00095       virtual void close();
00096     
00115       virtual jboolean checkError();
00116 
00126       virtual void print(const String& s);
00127 
00135       virtual void println(const String& x = nilString);
00136 
00137     private:
00138   
00139       ObjectRef impl;
00140       REGISTER_MEMBERS;
00141     
00142     };
00143 
00144   } // namespace io
00145 } // namespace java
00146 
00147 #endif /* JAVA_IO_PRINTSTREAM_H */

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