FileInputStream.h

Go to the documentation of this file.
00001 #ifndef JAVA_IO_FILEINPUTSTREAM_H
00002 #define JAVA_IO_FILEINPUTSTREAM_H 1
00003 
00004 #ifndef JAVA_IO_INPUTSTREAM_H
00005 #include <java_io/InputStream.h>
00006 #endif /* JAVA_IO_INPUTSTREAM_H */
00007 #ifndef JAVA_IO_FILE_H
00008 #include <java_io/File.h>
00009 #endif /* JAVA_IO_FILE_H */
00010 #ifndef JAVA_IO_FILEDESCRIPTOR_H
00011 #include <java_io/FileDescriptor.h>
00012 #endif /* JAVA_IO_FILEDESCRIPTOR_H */
00013 
00014 namespace java {
00015   namespace io {
00016 
00025     class JAVA_IO_SPEC FileInputStream : virtual public Object, virtual public InputStream {
00026 
00027     public:
00028 
00039       FileInputStream(const FileDescriptor& _fd = FileDescriptor());
00040 
00053       FileInputStream(const String& name);
00054 
00069       FileInputStream(const File& file);
00070 
00080       virtual jint read();
00081 
00096       virtual jint read(Array<jbyte>& b, jint off = 0, jint len = -1);
00097 
00109       virtual jlong skip(jlong n);
00110 
00120       virtual jint available();
00121 
00129       virtual void close();
00130 
00139       FileDescriptor getFD();
00140 
00141     private:
00142 
00143       ObjectRef impl;
00144       REGISTER_MEMBERS;
00145     
00146     };
00147 
00148   } // namespace io
00149 } // namespace java
00150 
00151 #endif /* JAVA_IO_FILEINPUTSTREAM_H */

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