UnicodeToBytes.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_gcj_convert_UnicodeToBytes__
  3. #define __gnu_gcj_convert_UnicodeToBytes__
  4. #pragma interface
  5. #include <gnu/gcj/convert/IOConverter.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace gcj
  12. {
  13. namespace convert
  14. {
  15. class UnicodeToBytes;
  16. }
  17. }
  18. }
  19. }
  20. class gnu::gcj::convert::UnicodeToBytes : public ::gnu::gcj::convert::IOConverter
  21. {
  22. public:
  23. UnicodeToBytes();
  24. virtual ::java::lang::String * getName() = 0;
  25. static ::gnu::gcj::convert::UnicodeToBytes * getDefaultEncoder();
  26. static ::gnu::gcj::convert::UnicodeToBytes * getEncoder(::java::lang::String *);
  27. virtual void setOutput(JArray< jbyte > *, jint);
  28. virtual jint write(JArray< jchar > *, jint, jint) = 0;
  29. virtual jint write(::java::lang::String *, jint, jint, JArray< jchar > *);
  30. virtual jboolean havePendingBytes();
  31. virtual void setFinished();
  32. virtual void done();
  33. JArray< jbyte > * __attribute__((aligned(__alignof__( ::gnu::gcj::convert::IOConverter)))) buf;
  34. jint count;
  35. public: // actually package-private
  36. static ::java::lang::String * defaultEncoding;
  37. private:
  38. static const jint CACHE_SIZE = 4;
  39. static JArray< ::gnu::gcj::convert::UnicodeToBytes * > * encoderCache;
  40. static jint currCachePos;
  41. public:
  42. static ::java::lang::Class class$;
  43. };
  44. #endif // __gnu_gcj_convert_UnicodeToBytes__