DataInput.h

Go to the documentation of this file.
00001 #ifndef JAVA_IO_DATAINPUT_H
00002 #define JAVA_IO_DATAINPUT_H 1
00003 
00004 #ifndef JAVA_LANG_OBJECT_H
00005 #include <java_lang/Object.h>
00006 #endif /* JAVA_LANG_OBJECT_H */
00007 
00008 namespace java {
00009   namespace io {
00010 
00036     class JAVA_IO_SPEC DataInput : virtual public Interface {
00037 
00038     public:
00039 
00054       virtual jint read() = 0;
00055 
00070       virtual jint read(Array<jbyte>& b, jint off = 0, jint len = -1) = 0;
00071 
00090       virtual jlong skip(jlong n) = 0;
00091 
00132       void readFully(Array<jbyte>& b, jint off = 0, jint len = -1);
00133 
00157       jint skipBytes(jint n);
00158 
00172       jboolean readBoolean();
00173 
00188       virtual jbyte readByte();
00189 
00208       jint readUnsignedByte();
00209 
00229       virtual jshort readShort(jboolean littleEndian = false);
00230 
00252       jint readUnsignedShort(jboolean littleEndian = false);
00253 
00273       virtual jchar readChar(jboolean littleEndian = false);
00274 
00297       jint readInt(jboolean littleEndian = false);
00298 
00331       virtual jlong readLong(jboolean littleEndian = false);
00332 
00351       virtual jfloat readFloat(jboolean littleEndian = false);
00352 
00371       jdouble readDouble(jboolean littleEndian = false);
00372 
00410       Ref<String> readLine();
00411 
00495       Ref<String> readUTF();
00496 
00497     private:
00498 
00499       REGISTER_MEMBERS;
00500 
00501     };
00502 
00503   } // namespace io
00504 } // namespace java
00505 
00506 #endif /* JAVA_IO_DATAINPUT_H */

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