CharsetToBytesAdaptor.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_gcj_convert_CharsetToBytesAdaptor__
  3. #define __gnu_gcj_convert_CharsetToBytesAdaptor__
  4. #pragma interface
  5. #include <gnu/gcj/convert/UnicodeToBytes.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace gcj
  12. {
  13. namespace convert
  14. {
  15. class CharsetToBytesAdaptor;
  16. }
  17. }
  18. }
  19. namespace java
  20. {
  21. namespace nio
  22. {
  23. class ByteBuffer;
  24. class CharBuffer;
  25. namespace charset
  26. {
  27. class Charset;
  28. class CharsetEncoder;
  29. }
  30. }
  31. }
  32. }
  33. class gnu::gcj::convert::CharsetToBytesAdaptor : public ::gnu::gcj::convert::UnicodeToBytes
  34. {
  35. public:
  36. CharsetToBytesAdaptor(::java::nio::charset::Charset *);
  37. CharsetToBytesAdaptor(::java::nio::charset::CharsetEncoder *);
  38. virtual ::java::lang::String * getName();
  39. virtual jint write(JArray< jchar > *, jint, jint);
  40. virtual jint write(::java::lang::String *, jint, jint, jchar);
  41. private:
  42. void write(::java::nio::CharBuffer *);
  43. public:
  44. virtual jboolean havePendingBytes();
  45. virtual void setFinished();
  46. virtual void done();
  47. private:
  48. ::java::nio::charset::CharsetEncoder * __attribute__((aligned(__alignof__( ::gnu::gcj::convert::UnicodeToBytes)))) encoder;
  49. ::java::nio::ByteBuffer * outBuf;
  50. jboolean closedEncoder;
  51. jboolean hasBytes;
  52. jboolean finished;
  53. public:
  54. static ::java::lang::Class class$;
  55. };
  56. #endif // __gnu_gcj_convert_CharsetToBytesAdaptor__