CoderResult.h

Go to the documentation of this file.
00001 #ifndef JAVA_IO_CODERRESULT_H
00002 #define JAVA_IO_CODERRESULT_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 
00062     class JAVA_IO_SPEC CoderResult : public Object {
00063 
00064     public:
00065 
00066       CoderResult();
00067 
00073       virtual String toString() const;
00074 
00080       jboolean isUnderflow() const;
00081   
00087       jboolean isOverflow() const;
00088 
00095       jboolean isError() const;
00096 
00104       jboolean isMalformed() const;
00105 
00113       jboolean isUnmappable() const;
00114 
00125       jint length() const;
00126 
00132       static CoderResult UNDERFLOW;
00133 
00138       static CoderResult OVERFLOW;
00139 
00146       static Ref<CoderResult> malformedForLength(jint len);
00147 
00154       static Ref<CoderResult> unmappableForLength(jint len);
00155 
00174       void throwException();
00175 
00176     private:
00177 
00178       CoderResult(jint type, jint len);
00179 
00180       jint type;
00181       jint len;
00182       REGISTER_MEMBERS;
00183     };
00184 
00185   } // namespace io
00186 } // namespace java
00187 
00188 #endif /* JAVA_IO_CODERRESULT_H */

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