diff options
Diffstat (limited to 'libjava/gnu/gcj/convert/BytesToCharsetAdaptor.h')
-rw-r--r-- | libjava/gnu/gcj/convert/BytesToCharsetAdaptor.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/libjava/gnu/gcj/convert/BytesToCharsetAdaptor.h b/libjava/gnu/gcj/convert/BytesToCharsetAdaptor.h new file mode 100644 index 00000000000..f9d4a8830e8 --- /dev/null +++ b/libjava/gnu/gcj/convert/BytesToCharsetAdaptor.h @@ -0,0 +1,54 @@ + +// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*- + +#ifndef __gnu_gcj_convert_BytesToCharsetAdaptor__ +#define __gnu_gcj_convert_BytesToCharsetAdaptor__ + +#pragma interface + +#include <gnu/gcj/convert/BytesToUnicode.h> +#include <gcj/array.h> + +extern "Java" +{ + namespace gnu + { + namespace gcj + { + namespace convert + { + class BytesToCharsetAdaptor; + } + } + } + namespace java + { + namespace nio + { + class ByteBuffer; + namespace charset + { + class Charset; + class CharsetDecoder; + } + } + } +} + +class gnu::gcj::convert::BytesToCharsetAdaptor : public ::gnu::gcj::convert::BytesToUnicode +{ + +public: + BytesToCharsetAdaptor(::java::nio::charset::Charset *); + BytesToCharsetAdaptor(::java::nio::charset::CharsetDecoder *); + virtual ::java::lang::String * getName(); + virtual jint read(JArray< jchar > *, jint, jint); + virtual void done(); +private: + ::java::nio::charset::CharsetDecoder * __attribute__((aligned(__alignof__( ::gnu::gcj::convert::BytesToUnicode)))) decoder; + ::java::nio::ByteBuffer * inBuf; +public: + static ::java::lang::Class class$; +}; + +#endif // __gnu_gcj_convert_BytesToCharsetAdaptor__ |