| 1 |
758 |
jeremybenn |
|
| 2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
| 3 |
|
|
|
| 4 |
|
|
#ifndef __java_nio_charset_CharsetDecoder__
|
| 5 |
|
|
#define __java_nio_charset_CharsetDecoder__
|
| 6 |
|
|
|
| 7 |
|
|
#pragma interface
|
| 8 |
|
|
|
| 9 |
|
|
#include <java/lang/Object.h>
|
| 10 |
|
|
extern "Java"
|
| 11 |
|
|
{
|
| 12 |
|
|
namespace java
|
| 13 |
|
|
{
|
| 14 |
|
|
namespace nio
|
| 15 |
|
|
{
|
| 16 |
|
|
class ByteBuffer;
|
| 17 |
|
|
class CharBuffer;
|
| 18 |
|
|
namespace charset
|
| 19 |
|
|
{
|
| 20 |
|
|
class Charset;
|
| 21 |
|
|
class CharsetDecoder;
|
| 22 |
|
|
class CoderResult;
|
| 23 |
|
|
class CodingErrorAction;
|
| 24 |
|
|
}
|
| 25 |
|
|
}
|
| 26 |
|
|
}
|
| 27 |
|
|
}
|
| 28 |
|
|
|
| 29 |
|
|
class java::nio::charset::CharsetDecoder : public ::java::lang::Object
|
| 30 |
|
|
{
|
| 31 |
|
|
|
| 32 |
|
|
CharsetDecoder(::java::nio::charset::Charset *, jfloat, jfloat, ::java::lang::String *);
|
| 33 |
|
|
public: // actually protected
|
| 34 |
|
|
CharsetDecoder(::java::nio::charset::Charset *, jfloat, jfloat);
|
| 35 |
|
|
public:
|
| 36 |
|
|
virtual jfloat averageCharsPerByte();
|
| 37 |
|
|
virtual ::java::nio::charset::Charset * charset();
|
| 38 |
|
|
virtual ::java::nio::CharBuffer * decode(::java::nio::ByteBuffer *);
|
| 39 |
|
|
virtual ::java::nio::charset::CoderResult * decode(::java::nio::ByteBuffer *, ::java::nio::CharBuffer *, jboolean);
|
| 40 |
|
|
public: // actually protected
|
| 41 |
|
|
virtual ::java::nio::charset::CoderResult * decodeLoop(::java::nio::ByteBuffer *, ::java::nio::CharBuffer *) = 0;
|
| 42 |
|
|
public:
|
| 43 |
|
|
virtual ::java::nio::charset::Charset * detectedCharset();
|
| 44 |
|
|
virtual ::java::nio::charset::CoderResult * flush(::java::nio::CharBuffer *);
|
| 45 |
|
|
public: // actually protected
|
| 46 |
|
|
virtual ::java::nio::charset::CoderResult * implFlush(::java::nio::CharBuffer *);
|
| 47 |
|
|
public:
|
| 48 |
|
|
virtual ::java::nio::charset::CharsetDecoder * onMalformedInput(::java::nio::charset::CodingErrorAction *);
|
| 49 |
|
|
public: // actually protected
|
| 50 |
|
|
virtual void implOnMalformedInput(::java::nio::charset::CodingErrorAction *);
|
| 51 |
|
|
virtual void implOnUnmappableCharacter(::java::nio::charset::CodingErrorAction *);
|
| 52 |
|
|
virtual void implReplaceWith(::java::lang::String *);
|
| 53 |
|
|
virtual void implReset();
|
| 54 |
|
|
public:
|
| 55 |
|
|
virtual jboolean isAutoDetecting();
|
| 56 |
|
|
virtual jboolean isCharsetDetected();
|
| 57 |
|
|
virtual ::java::nio::charset::CodingErrorAction * malformedInputAction();
|
| 58 |
|
|
virtual jfloat maxCharsPerByte();
|
| 59 |
|
|
virtual ::java::nio::charset::CharsetDecoder * onUnmappableCharacter(::java::nio::charset::CodingErrorAction *);
|
| 60 |
|
|
virtual ::java::lang::String * replacement();
|
| 61 |
|
|
virtual ::java::nio::charset::CharsetDecoder * replaceWith(::java::lang::String *);
|
| 62 |
|
|
virtual ::java::nio::charset::CharsetDecoder * reset();
|
| 63 |
|
|
virtual ::java::nio::charset::CodingErrorAction * unmappableCharacterAction();
|
| 64 |
|
|
private:
|
| 65 |
|
|
static const jint STATE_RESET = 0;
|
| 66 |
|
|
static const jint STATE_CODING = 1;
|
| 67 |
|
|
static const jint STATE_END = 2;
|
| 68 |
|
|
static const jint STATE_FLUSHED = 3;
|
| 69 |
|
|
static ::java::lang::String * DEFAULT_REPLACEMENT;
|
| 70 |
|
|
::java::nio::charset::Charset * __attribute__((aligned(__alignof__( ::java::lang::Object)))) charset__;
|
| 71 |
|
|
jfloat averageCharsPerByte__;
|
| 72 |
|
|
jfloat maxCharsPerByte__;
|
| 73 |
|
|
::java::lang::String * replacement__;
|
| 74 |
|
|
jint state;
|
| 75 |
|
|
::java::nio::charset::CodingErrorAction * malformedInputAction__;
|
| 76 |
|
|
::java::nio::charset::CodingErrorAction * unmappableCharacterAction__;
|
| 77 |
|
|
public:
|
| 78 |
|
|
static ::java::lang::Class class$;
|
| 79 |
|
|
};
|
| 80 |
|
|
|
| 81 |
|
|
#endif // __java_nio_charset_CharsetDecoder__
|