ByteArrayOutputStream.h

Go to the documentation of this file.
00001 #ifndef JAVA_IO_BYTEARRAYOUTPUTSTREAM_H
00002 #define JAVA_IO_BYTEARRAYOUTPUTSTREAM_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 
00022     class JAVA_IO_SPEC ByteArrayOutputStream : virtual public Object, virtual public OutputStream {
00023 
00024     public:
00025   
00030       ByteArrayOutputStream(jint initialSize = 32);
00031 
00037       virtual void write(jint b);
00038 
00047       virtual void write(const Array<jbyte>& b, jint off = 0, jint len = -1);
00048 
00055       virtual void reset();
00056 
00062       virtual void close();
00063 
00072       virtual void writeTo(OutputStream& out) const;
00073 
00083       Array<jbyte> toByteArray() const;
00084 
00091       virtual jint size() const;
00092 
00100       String toString() const;
00101 
00102     private:
00103   
00104       ObjectRef impl;
00105       REGISTER_MEMBERS;
00106     
00107     };
00108 
00109   } // namespace io
00110 } // namespace java
00111 
00112 #endif /* JAVA_IO_BYTEARRAYOUTPUTSTREAM_H */

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