summaryrefslogtreecommitdiff
path: root/libjava/gnu/gcj/convert/UnicodeToBytes.h
blob: ea3a38ca507939d8ffd99a64b9ce6916b256a5d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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__