ByteArrayInputStream.h

Go to the documentation of this file.
00001 #ifndef JAVA_IO_BYTEARRAYINPUTSTREAM_H
00002 #define JAVA_IO_BYTEARRAYINPUTSTREAM_H 1
00003 
00004 #ifndef JAVA_IO_INPUTSTREAM_H
00005 #include <java_io/InputStream.h>
00006 #endif /* JAVA_IO_INPUTSTREAM_H */
00007 
00008 namespace java {
00009   namespace io {
00010 
00022     class JAVA_IO_SPEC ByteArrayInputStream : virtual public Object, virtual public InputStream {
00023 
00024     public:
00025   
00039       ByteArrayInputStream(const Ref<Array<jbyte> >& buf = 0, jint ofs = 0, jint len = -1);
00040 
00057       virtual jint read();
00058 
00075       virtual jint read(Array<jbyte>& b, jint off = 0, jint len = -1);
00076 
00091       virtual jlong skip(jlong n);
00092 
00105       virtual jint available();
00106 
00115       virtual void close();
00116 
00131       virtual void mark(jint readlimit = 0);
00132 
00152       virtual void reset();
00153 
00164       virtual jboolean markSupported();
00165 
00166     private:
00167   
00168       ObjectRef impl;
00169       REGISTER_MEMBERS;
00170     
00171     };
00172 
00173   } // namespace io
00174 } // namespace java
00175 
00176 #endif /* JAVA_IO_BYTEARRAYINPUTSTREAM_H */

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