BufferedInputStream.h

Go to the documentation of this file.
00001 #ifndef JAVA_IO_BUFFEREDINPUTSTREAM_H
00002 #define JAVA_IO_BUFFEREDINPUTSTREAM_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 
00033     class JAVA_IO_SPEC BufferedInputStream : virtual public Object, virtual public InputStream {
00034 
00035     public:
00036   
00046       BufferedInputStream(const Ref<InputStream>& in = 0, jint size = 2048);
00047 
00064       virtual jint read();
00065 
00082       virtual jint read(Array<jbyte>& b, jint off = 0, jint len = -1);
00083 
00098       virtual jlong skip(jlong n);
00099 
00112       virtual jint available();
00113 
00122       virtual void close();
00123 
00138       virtual void mark(jint readlimit = 0);
00139 
00159       virtual void reset();
00160 
00171       virtual jboolean markSupported();
00172 
00173     private:
00174   
00175       ObjectRef impl;
00176       REGISTER_MEMBERS;
00177     
00178     };
00179 
00180   } // namespace io
00181 } // namespace java
00182 
00183 #endif /* JAVA_IO_BUFFEREDINPUTSTREAM_H */

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