InputStreamReader.h

Go to the documentation of this file.
00001 #ifndef JAVA_IO_INPUTSTREAMREADER_H
00002 #define JAVA_IO_INPUTSTREAMREADER_H 1
00003 
00004 #ifndef JAVA_IO_READER_H
00005 #include <java_io/Reader.h>
00006 #endif /* JAVA_IO_READER_H */
00007 #ifndef JAVA_IO_INPUTSTREAM_H
00008 #include <java_io/InputStream.h>
00009 #endif /* JAVA_IO_INPUTSTREAM_H */
00010 
00011 namespace java {
00012   namespace io {
00013 
00034     class JAVA_IO_SPEC InputStreamReader : virtual public Object, virtual public Reader {
00035 
00036     public:
00037 
00047       InputStreamReader(const Ref<InputStream>& in = 0, const String& enc = nilCString);
00048 
00053       const String getEncoding() const;
00054 
00065       virtual jint read();
00066 
00079       virtual jint read(Array<jchar>& b, jint ofs = 0, jint len = -1);
00080 
00092       virtual jlong skip(jlong n);
00093 
00101       virtual jboolean ready();
00102 
00108       virtual void close();
00109 
00110     private:
00111   
00112       ObjectRef impl;
00113       REGISTER_MEMBERS;
00114     
00115     };
00116 
00117   } // namespace io
00118 } // namespace java
00119 
00120 #endif /* JAVA_IO_INPUTSTREAMREADER_H */

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