CharsetDecoder.h

Go to the documentation of this file.
00001 #ifndef JAVA_IO_CHARSETDECODER_H
00002 #define JAVA_IO_CHARSETDECODER_H 1
00003 
00004 #ifndef JAVA_IO_CHARSETCODER_H
00005 #include <java_io/CharsetCoder.h>
00006 #endif /* JAVA_IO_CHARSETCODER_H */
00007 
00008 namespace java {
00009   namespace io {
00010 
00102     class JAVA_IO_SPEC CharsetDecoder : public CharsetCoder {
00103 
00104     public:
00105   
00142       Ref<CoderResult> flush(Array<jchar>& out);
00143 
00240       Ref<CoderResult> decode
00241         (Array<jbyte>& in, 
00242          Array<jchar>& out,
00243          jboolean endOfInput);
00244 
00276       Array<jchar> decode(Array<jbyte>& in);
00277 
00278     protected:
00279 
00300       CharsetDecoder
00301         (const Ref<Charset>& cs,
00302          jfloat averageRatio,
00303          jfloat maxRatio,
00304          const String& replace = "?");
00305 
00320       virtual Ref<CoderResult> implFlush(Array<jchar>& out);
00321 
00357       virtual Ref<CoderResult> decodeLoop(Array<jbyte>& in, Array<jchar>& out) = 0;
00358 
00359     private:
00360 
00361       REGISTER_MEMBERS;
00362 
00363     };
00364 
00365   } // namespace io
00366 } // namespace java
00367 
00368 #endif /* JAVA_IO_CHARSETDECODER_H */

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