summaryrefslogtreecommitdiff
path: root/libjava/gnu/gcj/convert
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/gnu/gcj/convert')
-rw-r--r--libjava/gnu/gcj/convert/BytesToCharsetAdaptor.h54
-rw-r--r--libjava/gnu/gcj/convert/BytesToUnicode.h50
-rw-r--r--libjava/gnu/gcj/convert/CharsetToBytesAdaptor.h64
-rw-r--r--libjava/gnu/gcj/convert/Convert.h41
-rw-r--r--libjava/gnu/gcj/convert/IOConverter.h41
-rw-r--r--libjava/gnu/gcj/convert/Input_8859_1.h36
-rw-r--r--libjava/gnu/gcj/convert/Input_ASCII.h36
-rw-r--r--libjava/gnu/gcj/convert/Input_EUCJIS.h40
-rw-r--r--libjava/gnu/gcj/convert/Input_JavaSrc.h40
-rw-r--r--libjava/gnu/gcj/convert/Input_SJIS.h39
-rw-r--r--libjava/gnu/gcj/convert/Input_UTF8.h40
-rw-r--r--libjava/gnu/gcj/convert/Input_UnicodeBig.h40
-rw-r--r--libjava/gnu/gcj/convert/Input_UnicodeLittle.h40
-rw-r--r--libjava/gnu/gcj/convert/Input_iconv.h46
-rw-r--r--libjava/gnu/gcj/convert/Output_8859_1.h37
-rw-r--r--libjava/gnu/gcj/convert/Output_ASCII.h37
-rw-r--r--libjava/gnu/gcj/convert/Output_EUCJIS.h42
-rw-r--r--libjava/gnu/gcj/convert/Output_JavaSrc.h40
-rw-r--r--libjava/gnu/gcj/convert/Output_SJIS.h41
-rw-r--r--libjava/gnu/gcj/convert/Output_UTF8.h43
-rw-r--r--libjava/gnu/gcj/convert/Output_UnicodeLittleUnmarked.h36
-rw-r--r--libjava/gnu/gcj/convert/Output_iconv.h46
-rw-r--r--libjava/gnu/gcj/convert/UnicodeToBytes.h52
-rw-r--r--libjava/gnu/gcj/convert/Unicode_to_JIS.cc1
-rw-r--r--libjava/gnu/gcj/convert/natIconv.cc12
25 files changed, 987 insertions, 7 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__
diff --git a/libjava/gnu/gcj/convert/BytesToUnicode.h b/libjava/gnu/gcj/convert/BytesToUnicode.h
new file mode 100644
index 00000000000..15ff3ec55b9
--- /dev/null
+++ b/libjava/gnu/gcj/convert/BytesToUnicode.h
@@ -0,0 +1,50 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_BytesToUnicode__
+#define __gnu_gcj_convert_BytesToUnicode__
+
+#pragma interface
+
+#include <gnu/gcj/convert/IOConverter.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class BytesToUnicode;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::BytesToUnicode : public ::gnu::gcj::convert::IOConverter
+{
+
+public:
+ BytesToUnicode();
+ virtual ::java::lang::String * getName() = 0;
+ static ::gnu::gcj::convert::BytesToUnicode * getDefaultDecoder();
+ static ::gnu::gcj::convert::BytesToUnicode * getDecoder(::java::lang::String *);
+ virtual void setInput(JArray< jbyte > *, jint, jint);
+ virtual jint read(JArray< jchar > *, jint, jint) = 0;
+ virtual void done();
+ JArray< jbyte > * __attribute__((aligned(__alignof__( ::gnu::gcj::convert::IOConverter)))) inbuffer;
+ jint inpos;
+ jint inlength;
+public: // actually package-private
+ static ::java::lang::String * defaultEncoding;
+private:
+ static const jint CACHE_SIZE = 4;
+ static JArray< ::gnu::gcj::convert::BytesToUnicode * > * decoderCache;
+ static jint currCachePos;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_BytesToUnicode__
diff --git a/libjava/gnu/gcj/convert/CharsetToBytesAdaptor.h b/libjava/gnu/gcj/convert/CharsetToBytesAdaptor.h
new file mode 100644
index 00000000000..4115ef4907d
--- /dev/null
+++ b/libjava/gnu/gcj/convert/CharsetToBytesAdaptor.h
@@ -0,0 +1,64 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_CharsetToBytesAdaptor__
+#define __gnu_gcj_convert_CharsetToBytesAdaptor__
+
+#pragma interface
+
+#include <gnu/gcj/convert/UnicodeToBytes.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class CharsetToBytesAdaptor;
+ }
+ }
+ }
+ namespace java
+ {
+ namespace nio
+ {
+ class ByteBuffer;
+ class CharBuffer;
+ namespace charset
+ {
+ class Charset;
+ class CharsetEncoder;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::CharsetToBytesAdaptor : public ::gnu::gcj::convert::UnicodeToBytes
+{
+
+public:
+ CharsetToBytesAdaptor(::java::nio::charset::Charset *);
+ CharsetToBytesAdaptor(::java::nio::charset::CharsetEncoder *);
+ virtual ::java::lang::String * getName();
+ virtual jint write(JArray< jchar > *, jint, jint);
+ virtual jint write(::java::lang::String *, jint, jint, jchar);
+private:
+ void write(::java::nio::CharBuffer *);
+public:
+ virtual jboolean havePendingBytes();
+ virtual void setFinished();
+ virtual void done();
+private:
+ ::java::nio::charset::CharsetEncoder * __attribute__((aligned(__alignof__( ::gnu::gcj::convert::UnicodeToBytes)))) encoder;
+ ::java::nio::ByteBuffer * outBuf;
+ jboolean closedEncoder;
+ jboolean hasBytes;
+ jboolean finished;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_CharsetToBytesAdaptor__
diff --git a/libjava/gnu/gcj/convert/Convert.h b/libjava/gnu/gcj/convert/Convert.h
new file mode 100644
index 00000000000..8a77702240e
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Convert.h
@@ -0,0 +1,41 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Convert__
+#define __gnu_gcj_convert_Convert__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class Convert;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Convert : public ::java::lang::Object
+{
+
+public:
+ Convert();
+public: // actually package-private
+ static void error(::java::lang::String *);
+ static void help();
+ static void version();
+ static void missing(::java::lang::String *);
+public:
+ static void main(JArray< ::java::lang::String * > *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Convert__
diff --git a/libjava/gnu/gcj/convert/IOConverter.h b/libjava/gnu/gcj/convert/IOConverter.h
new file mode 100644
index 00000000000..66548598bc1
--- /dev/null
+++ b/libjava/gnu/gcj/convert/IOConverter.h
@@ -0,0 +1,41 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_IOConverter__
+#define __gnu_gcj_convert_IOConverter__
+
+#pragma interface
+
+#include <java/lang/Object.h>
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class IOConverter;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::IOConverter : public ::java::lang::Object
+{
+
+public:
+ IOConverter();
+private:
+ static jboolean iconv_init();
+public: // actually protected
+ static ::java::lang::String * canonicalize(::java::lang::String *);
+private:
+ static ::java::util::Hashtable * hash;
+public: // actually protected
+ static jboolean iconv_byte_swap;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_IOConverter__
diff --git a/libjava/gnu/gcj/convert/Input_8859_1.h b/libjava/gnu/gcj/convert/Input_8859_1.h
new file mode 100644
index 00000000000..eccb4b34c13
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Input_8859_1.h
@@ -0,0 +1,36 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Input_8859_1__
+#define __gnu_gcj_convert_Input_8859_1__
+
+#pragma interface
+
+#include <gnu/gcj/convert/BytesToUnicode.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class Input_8859_1;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Input_8859_1 : public ::gnu::gcj::convert::BytesToUnicode
+{
+
+public:
+ Input_8859_1();
+ virtual ::java::lang::String * getName();
+ virtual jint read(JArray< jchar > *, jint, jint);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Input_8859_1__
diff --git a/libjava/gnu/gcj/convert/Input_ASCII.h b/libjava/gnu/gcj/convert/Input_ASCII.h
new file mode 100644
index 00000000000..fcc8c65a367
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Input_ASCII.h
@@ -0,0 +1,36 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Input_ASCII__
+#define __gnu_gcj_convert_Input_ASCII__
+
+#pragma interface
+
+#include <gnu/gcj/convert/BytesToUnicode.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class Input_ASCII;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Input_ASCII : public ::gnu::gcj::convert::BytesToUnicode
+{
+
+public:
+ Input_ASCII();
+ virtual ::java::lang::String * getName();
+ virtual jint read(JArray< jchar > *, jint, jint);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Input_ASCII__
diff --git a/libjava/gnu/gcj/convert/Input_EUCJIS.h b/libjava/gnu/gcj/convert/Input_EUCJIS.h
new file mode 100644
index 00000000000..3a93c52db51
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Input_EUCJIS.h
@@ -0,0 +1,40 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Input_EUCJIS__
+#define __gnu_gcj_convert_Input_EUCJIS__
+
+#pragma interface
+
+#include <gnu/gcj/convert/BytesToUnicode.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class Input_EUCJIS;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Input_EUCJIS : public ::gnu::gcj::convert::BytesToUnicode
+{
+
+public:
+ Input_EUCJIS();
+ virtual ::java::lang::String * getName();
+ virtual jint read(JArray< jchar > *, jint, jint);
+public: // actually package-private
+ jint __attribute__((aligned(__alignof__( ::gnu::gcj::convert::BytesToUnicode)))) codeset;
+ jint first_byte;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Input_EUCJIS__
diff --git a/libjava/gnu/gcj/convert/Input_JavaSrc.h b/libjava/gnu/gcj/convert/Input_JavaSrc.h
new file mode 100644
index 00000000000..4509cf64a1e
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Input_JavaSrc.h
@@ -0,0 +1,40 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Input_JavaSrc__
+#define __gnu_gcj_convert_Input_JavaSrc__
+
+#pragma interface
+
+#include <gnu/gcj/convert/BytesToUnicode.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class Input_JavaSrc;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Input_JavaSrc : public ::gnu::gcj::convert::BytesToUnicode
+{
+
+public:
+ Input_JavaSrc();
+ virtual ::java::lang::String * getName();
+ virtual jint read(JArray< jchar > *, jint, jint);
+public: // actually package-private
+ jint __attribute__((aligned(__alignof__( ::gnu::gcj::convert::BytesToUnicode)))) state;
+ jint value;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Input_JavaSrc__
diff --git a/libjava/gnu/gcj/convert/Input_SJIS.h b/libjava/gnu/gcj/convert/Input_SJIS.h
new file mode 100644
index 00000000000..d2cacbe4388
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Input_SJIS.h
@@ -0,0 +1,39 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Input_SJIS__
+#define __gnu_gcj_convert_Input_SJIS__
+
+#pragma interface
+
+#include <gnu/gcj/convert/BytesToUnicode.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class Input_SJIS;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Input_SJIS : public ::gnu::gcj::convert::BytesToUnicode
+{
+
+public:
+ Input_SJIS();
+ virtual ::java::lang::String * getName();
+ virtual jint read(JArray< jchar > *, jint, jint);
+public: // actually package-private
+ jint __attribute__((aligned(__alignof__( ::gnu::gcj::convert::BytesToUnicode)))) first_byte;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Input_SJIS__
diff --git a/libjava/gnu/gcj/convert/Input_UTF8.h b/libjava/gnu/gcj/convert/Input_UTF8.h
new file mode 100644
index 00000000000..347513bda8f
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Input_UTF8.h
@@ -0,0 +1,40 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Input_UTF8__
+#define __gnu_gcj_convert_Input_UTF8__
+
+#pragma interface
+
+#include <gnu/gcj/convert/BytesToUnicode.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class Input_UTF8;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Input_UTF8 : public ::gnu::gcj::convert::BytesToUnicode
+{
+
+public:
+ Input_UTF8();
+ virtual ::java::lang::String * getName();
+ virtual jint read(JArray< jchar > *, jint, jint);
+public: // actually package-private
+ jint __attribute__((aligned(__alignof__( ::gnu::gcj::convert::BytesToUnicode)))) partial;
+ jint partial_bytes_expected;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Input_UTF8__
diff --git a/libjava/gnu/gcj/convert/Input_UnicodeBig.h b/libjava/gnu/gcj/convert/Input_UnicodeBig.h
new file mode 100644
index 00000000000..ec834edecf8
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Input_UnicodeBig.h
@@ -0,0 +1,40 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Input_UnicodeBig__
+#define __gnu_gcj_convert_Input_UnicodeBig__
+
+#pragma interface
+
+#include <gnu/gcj/convert/BytesToUnicode.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class Input_UnicodeBig;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Input_UnicodeBig : public ::gnu::gcj::convert::BytesToUnicode
+{
+
+public:
+ Input_UnicodeBig();
+ virtual ::java::lang::String * getName();
+ virtual jint read(JArray< jchar > *, jint, jint);
+public: // actually package-private
+ jchar __attribute__((aligned(__alignof__( ::gnu::gcj::convert::BytesToUnicode)))) partial;
+ jint partial_count;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Input_UnicodeBig__
diff --git a/libjava/gnu/gcj/convert/Input_UnicodeLittle.h b/libjava/gnu/gcj/convert/Input_UnicodeLittle.h
new file mode 100644
index 00000000000..ddc3c0620bd
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Input_UnicodeLittle.h
@@ -0,0 +1,40 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Input_UnicodeLittle__
+#define __gnu_gcj_convert_Input_UnicodeLittle__
+
+#pragma interface
+
+#include <gnu/gcj/convert/BytesToUnicode.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class Input_UnicodeLittle;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Input_UnicodeLittle : public ::gnu::gcj::convert::BytesToUnicode
+{
+
+public:
+ Input_UnicodeLittle();
+ virtual ::java::lang::String * getName();
+ virtual jint read(JArray< jchar > *, jint, jint);
+public: // actually package-private
+ jchar __attribute__((aligned(__alignof__( ::gnu::gcj::convert::BytesToUnicode)))) partial;
+ jint partial_count;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Input_UnicodeLittle__
diff --git a/libjava/gnu/gcj/convert/Input_iconv.h b/libjava/gnu/gcj/convert/Input_iconv.h
new file mode 100644
index 00000000000..7fd8893f133
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Input_iconv.h
@@ -0,0 +1,46 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Input_iconv__
+#define __gnu_gcj_convert_Input_iconv__
+
+#pragma interface
+
+#include <gnu/gcj/convert/BytesToUnicode.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ class RawData;
+ namespace convert
+ {
+ class Input_iconv;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Input_iconv : public ::gnu::gcj::convert::BytesToUnicode
+{
+
+public:
+ Input_iconv(::java::lang::String *);
+ virtual ::java::lang::String * getName();
+ virtual void finalize();
+private:
+ void init(::java::lang::String *);
+public:
+ virtual jint read(JArray< jchar > *, jint, jint);
+ virtual void done();
+private:
+ ::java::lang::String * __attribute__((aligned(__alignof__( ::gnu::gcj::convert::BytesToUnicode)))) encoding;
+ ::gnu::gcj::RawData * handle;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Input_iconv__
diff --git a/libjava/gnu/gcj/convert/Output_8859_1.h b/libjava/gnu/gcj/convert/Output_8859_1.h
new file mode 100644
index 00000000000..8dcd92d4548
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Output_8859_1.h
@@ -0,0 +1,37 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Output_8859_1__
+#define __gnu_gcj_convert_Output_8859_1__
+
+#pragma interface
+
+#include <gnu/gcj/convert/UnicodeToBytes.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class Output_8859_1;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Output_8859_1 : public ::gnu::gcj::convert::UnicodeToBytes
+{
+
+public:
+ Output_8859_1();
+ virtual ::java::lang::String * getName();
+ virtual jint write(JArray< jchar > *, jint, jint);
+ virtual jint write(::java::lang::String *, jint, jint, JArray< jchar > *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Output_8859_1__
diff --git a/libjava/gnu/gcj/convert/Output_ASCII.h b/libjava/gnu/gcj/convert/Output_ASCII.h
new file mode 100644
index 00000000000..3dc551cbcb6
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Output_ASCII.h
@@ -0,0 +1,37 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Output_ASCII__
+#define __gnu_gcj_convert_Output_ASCII__
+
+#pragma interface
+
+#include <gnu/gcj/convert/UnicodeToBytes.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class Output_ASCII;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Output_ASCII : public ::gnu::gcj::convert::UnicodeToBytes
+{
+
+public:
+ Output_ASCII();
+ virtual ::java::lang::String * getName();
+ virtual jint write(JArray< jchar > *, jint, jint);
+ virtual jint write(::java::lang::String *, jint, jint, JArray< jchar > *);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Output_ASCII__
diff --git a/libjava/gnu/gcj/convert/Output_EUCJIS.h b/libjava/gnu/gcj/convert/Output_EUCJIS.h
new file mode 100644
index 00000000000..f1d925857fe
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Output_EUCJIS.h
@@ -0,0 +1,42 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Output_EUCJIS__
+#define __gnu_gcj_convert_Output_EUCJIS__
+
+#pragma interface
+
+#include <gnu/gcj/convert/UnicodeToBytes.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class Output_EUCJIS;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Output_EUCJIS : public ::gnu::gcj::convert::UnicodeToBytes
+{
+
+public:
+ Output_EUCJIS();
+ virtual ::java::lang::String * getName();
+ virtual jint write(JArray< jchar > *, jint, jint);
+ virtual jint write(::java::lang::String *, jint, jint, JArray< jchar > *);
+ virtual jboolean havePendingBytes();
+public: // actually package-private
+ jint __attribute__((aligned(__alignof__( ::gnu::gcj::convert::UnicodeToBytes)))) pending1;
+ jint pending2;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Output_EUCJIS__
diff --git a/libjava/gnu/gcj/convert/Output_JavaSrc.h b/libjava/gnu/gcj/convert/Output_JavaSrc.h
new file mode 100644
index 00000000000..8cea3739017
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Output_JavaSrc.h
@@ -0,0 +1,40 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Output_JavaSrc__
+#define __gnu_gcj_convert_Output_JavaSrc__
+
+#pragma interface
+
+#include <gnu/gcj/convert/UnicodeToBytes.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class Output_JavaSrc;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Output_JavaSrc : public ::gnu::gcj::convert::UnicodeToBytes
+{
+
+public:
+ Output_JavaSrc();
+ virtual ::java::lang::String * getName();
+ virtual jint write(JArray< jchar > *, jint, jint);
+public: // actually package-private
+ jint __attribute__((aligned(__alignof__( ::gnu::gcj::convert::UnicodeToBytes)))) todo;
+ jint pending_char;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Output_JavaSrc__
diff --git a/libjava/gnu/gcj/convert/Output_SJIS.h b/libjava/gnu/gcj/convert/Output_SJIS.h
new file mode 100644
index 00000000000..5175d201631
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Output_SJIS.h
@@ -0,0 +1,41 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Output_SJIS__
+#define __gnu_gcj_convert_Output_SJIS__
+
+#pragma interface
+
+#include <gnu/gcj/convert/UnicodeToBytes.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class Output_SJIS;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Output_SJIS : public ::gnu::gcj::convert::UnicodeToBytes
+{
+
+public:
+ Output_SJIS();
+ virtual ::java::lang::String * getName();
+ virtual jint write(JArray< jchar > *, jint, jint);
+ virtual jint write(::java::lang::String *, jint, jint, JArray< jchar > *);
+ virtual jboolean havePendingBytes();
+public: // actually package-private
+ jint __attribute__((aligned(__alignof__( ::gnu::gcj::convert::UnicodeToBytes)))) pending;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Output_SJIS__
diff --git a/libjava/gnu/gcj/convert/Output_UTF8.h b/libjava/gnu/gcj/convert/Output_UTF8.h
new file mode 100644
index 00000000000..167b62dba7e
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Output_UTF8.h
@@ -0,0 +1,43 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Output_UTF8__
+#define __gnu_gcj_convert_Output_UTF8__
+
+#pragma interface
+
+#include <gnu/gcj/convert/UnicodeToBytes.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class Output_UTF8;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Output_UTF8 : public ::gnu::gcj::convert::UnicodeToBytes
+{
+
+public:
+ Output_UTF8();
+ virtual ::java::lang::String * getName();
+ virtual jint write(JArray< jchar > *, jint, jint);
+ virtual jboolean havePendingBytes();
+ jboolean __attribute__((aligned(__alignof__( ::gnu::gcj::convert::UnicodeToBytes)))) standardUTF8;
+public: // actually package-private
+ jchar hi_part;
+ jint value;
+ jint bytes_todo;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Output_UTF8__
diff --git a/libjava/gnu/gcj/convert/Output_UnicodeLittleUnmarked.h b/libjava/gnu/gcj/convert/Output_UnicodeLittleUnmarked.h
new file mode 100644
index 00000000000..747846bd0a9
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Output_UnicodeLittleUnmarked.h
@@ -0,0 +1,36 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Output_UnicodeLittleUnmarked__
+#define __gnu_gcj_convert_Output_UnicodeLittleUnmarked__
+
+#pragma interface
+
+#include <gnu/gcj/convert/UnicodeToBytes.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class Output_UnicodeLittleUnmarked;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Output_UnicodeLittleUnmarked : public ::gnu::gcj::convert::UnicodeToBytes
+{
+
+public:
+ Output_UnicodeLittleUnmarked();
+ virtual ::java::lang::String * getName();
+ virtual jint write(JArray< jchar > *, jint, jint);
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Output_UnicodeLittleUnmarked__
diff --git a/libjava/gnu/gcj/convert/Output_iconv.h b/libjava/gnu/gcj/convert/Output_iconv.h
new file mode 100644
index 00000000000..a06f96b0d9f
--- /dev/null
+++ b/libjava/gnu/gcj/convert/Output_iconv.h
@@ -0,0 +1,46 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_Output_iconv__
+#define __gnu_gcj_convert_Output_iconv__
+
+#pragma interface
+
+#include <gnu/gcj/convert/UnicodeToBytes.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ class RawData;
+ namespace convert
+ {
+ class Output_iconv;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::Output_iconv : public ::gnu::gcj::convert::UnicodeToBytes
+{
+
+public:
+ Output_iconv(::java::lang::String *);
+ virtual ::java::lang::String * getName();
+ virtual void finalize();
+private:
+ void init(::java::lang::String *);
+public:
+ virtual jint write(JArray< jchar > *, jint, jint);
+ virtual void done();
+private:
+ ::java::lang::String * __attribute__((aligned(__alignof__( ::gnu::gcj::convert::UnicodeToBytes)))) encoding;
+ ::gnu::gcj::RawData * handle;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_Output_iconv__
diff --git a/libjava/gnu/gcj/convert/UnicodeToBytes.h b/libjava/gnu/gcj/convert/UnicodeToBytes.h
new file mode 100644
index 00000000000..ea3a38ca507
--- /dev/null
+++ b/libjava/gnu/gcj/convert/UnicodeToBytes.h
@@ -0,0 +1,52 @@
+
+// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
+
+#ifndef __gnu_gcj_convert_UnicodeToBytes__
+#define __gnu_gcj_convert_UnicodeToBytes__
+
+#pragma interface
+
+#include <gnu/gcj/convert/IOConverter.h>
+#include <gcj/array.h>
+
+extern "Java"
+{
+ namespace gnu
+ {
+ namespace gcj
+ {
+ namespace convert
+ {
+ class UnicodeToBytes;
+ }
+ }
+ }
+}
+
+class gnu::gcj::convert::UnicodeToBytes : public ::gnu::gcj::convert::IOConverter
+{
+
+public:
+ UnicodeToBytes();
+ virtual ::java::lang::String * getName() = 0;
+ static ::gnu::gcj::convert::UnicodeToBytes * getDefaultEncoder();
+ static ::gnu::gcj::convert::UnicodeToBytes * getEncoder(::java::lang::String *);
+ virtual void setOutput(JArray< jbyte > *, jint);
+ virtual jint write(JArray< jchar > *, jint, jint) = 0;
+ virtual jint write(::java::lang::String *, jint, jint, JArray< jchar > *);
+ virtual jboolean havePendingBytes();
+ virtual void setFinished();
+ virtual void done();
+ JArray< jbyte > * __attribute__((aligned(__alignof__( ::gnu::gcj::convert::IOConverter)))) buf;
+ jint count;
+public: // actually package-private
+ static ::java::lang::String * defaultEncoding;
+private:
+ static const jint CACHE_SIZE = 4;
+ static JArray< ::gnu::gcj::convert::UnicodeToBytes * > * encoderCache;
+ static jint currCachePos;
+public:
+ static ::java::lang::Class class$;
+};
+
+#endif // __gnu_gcj_convert_UnicodeToBytes__
diff --git a/libjava/gnu/gcj/convert/Unicode_to_JIS.cc b/libjava/gnu/gcj/convert/Unicode_to_JIS.cc
index ad99bb726af..10b3b7003db 100644
--- a/libjava/gnu/gcj/convert/Unicode_to_JIS.cc
+++ b/libjava/gnu/gcj/convert/Unicode_to_JIS.cc
@@ -1,5 +1,4 @@
/* This file is automatically generated. */
-#pragma GCC java_exceptions
unsigned short Unicode_to_JIS[] = {
/* branch: 0x0XXX */ 16,
/* branch: 0x1XXX */ 0,
diff --git a/libjava/gnu/gcj/convert/natIconv.cc b/libjava/gnu/gcj/convert/natIconv.cc
index 6c64e2b4bf9..ad75a505ff8 100644
--- a/libjava/gnu/gcj/convert/natIconv.cc
+++ b/libjava/gnu/gcj/convert/natIconv.cc
@@ -1,6 +1,6 @@
// natIconv.cc -- Java side of iconv() reader.
-/* Copyright (C) 2000, 2001, 2003 Free Software Foundation
+/* Copyright (C) 2000, 2001, 2003, 2006 Free Software Foundation
This file is part of libgcj.
@@ -47,13 +47,13 @@ gnu::gcj::convert::Input_iconv::init (jstring encoding)
iconv_t h = iconv_open ("UCS-2", buffer);
if (h == (iconv_t) -1)
- throw new java::io::UnsupportedEncodingException (encoding);
+ throw new ::java::io::UnsupportedEncodingException (encoding);
JvAssert (h != NULL);
handle = reinterpret_cast<gnu::gcj::RawData *> (h);
#else /* HAVE_ICONV */
// If no iconv, just throw an exception.
- throw new java::io::UnsupportedEncodingException (encoding);
+ throw new ::java::io::UnsupportedEncodingException (encoding);
#endif /* HAVE_ICONV */
}
@@ -96,7 +96,7 @@ gnu::gcj::convert::Input_iconv::read (jcharArray outbuffer,
// some conversion might have taken place. So we fall through
// to the normal case.
if (errno != EINVAL && errno != E2BIG)
- throw new java::io::CharConversionException ();
+ throw new ::java::io::CharConversionException ();
}
if (iconv_byte_swap)
@@ -147,13 +147,13 @@ gnu::gcj::convert::Output_iconv::init (jstring encoding)
iconv_t h = iconv_open (buffer, "UCS-2");
if (h == (iconv_t) -1)
- throw new java::io::UnsupportedEncodingException (encoding);
+ throw new ::java::io::UnsupportedEncodingException (encoding);
JvAssert (h != NULL);
handle = reinterpret_cast<gnu::gcj::RawData *> (h);
#else /* HAVE_ICONV */
// If no iconv, just throw an exception.
- throw new java::io::UnsupportedEncodingException (encoding);
+ throw new ::java::io::UnsupportedEncodingException (encoding);
#endif /* HAVE_ICONV */
}