XMLStreamWriterImpl.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. // DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
  2. #ifndef __gnu_xml_stream_XMLStreamWriterImpl__
  3. #define __gnu_xml_stream_XMLStreamWriterImpl__
  4. #pragma interface
  5. #include <java/lang/Object.h>
  6. #include <gcj/array.h>
  7. extern "Java"
  8. {
  9. namespace gnu
  10. {
  11. namespace xml
  12. {
  13. namespace stream
  14. {
  15. class XMLStreamWriterImpl;
  16. }
  17. }
  18. }
  19. namespace javax
  20. {
  21. namespace xml
  22. {
  23. namespace namespace$
  24. {
  25. class NamespaceContext;
  26. }
  27. }
  28. }
  29. namespace org
  30. {
  31. namespace xml
  32. {
  33. namespace sax
  34. {
  35. namespace helpers
  36. {
  37. class NamespaceSupport;
  38. }
  39. }
  40. }
  41. }
  42. }
  43. class gnu::xml::stream::XMLStreamWriterImpl : public ::java::lang::Object
  44. {
  45. public: // actually protected
  46. XMLStreamWriterImpl(::java::io::Writer *, ::java::lang::String *, jboolean);
  47. private:
  48. void endStartElement();
  49. public:
  50. virtual void writeStartElement(::java::lang::String *);
  51. virtual void writeStartElement(::java::lang::String *, ::java::lang::String *);
  52. public: // actually protected
  53. virtual ::java::lang::String * createPrefix(::java::lang::String *);
  54. public:
  55. virtual void writeStartElement(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  56. virtual void writeEmptyElement(::java::lang::String *, ::java::lang::String *);
  57. virtual void writeEmptyElement(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  58. virtual void writeEmptyElement(::java::lang::String *);
  59. virtual void writeEndElement();
  60. virtual void writeEndDocument();
  61. virtual void close();
  62. virtual void flush();
  63. virtual void writeAttribute(::java::lang::String *, ::java::lang::String *);
  64. virtual void writeAttribute(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  65. virtual void writeAttribute(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  66. virtual void writeNamespace(::java::lang::String *, ::java::lang::String *);
  67. private:
  68. void writeNamespaceImpl(::java::lang::String *, ::java::lang::String *);
  69. public:
  70. virtual void writeDefaultNamespace(::java::lang::String *);
  71. virtual void writeComment(::java::lang::String *);
  72. virtual void writeProcessingInstruction(::java::lang::String *);
  73. virtual void writeProcessingInstruction(::java::lang::String *, ::java::lang::String *);
  74. virtual void writeCData(::java::lang::String *);
  75. virtual void writeDTD(::java::lang::String *);
  76. virtual void writeEntityRef(::java::lang::String *);
  77. virtual void writeStartDocument();
  78. virtual void writeStartDocument(::java::lang::String *);
  79. virtual void writeStartDocument(::java::lang::String *, ::java::lang::String *);
  80. virtual void writeCharacters(::java::lang::String *);
  81. virtual void writeCharacters(JArray< jchar > *, jint, jint);
  82. virtual ::java::lang::String * getPrefix(::java::lang::String *);
  83. virtual void setPrefix(::java::lang::String *, ::java::lang::String *);
  84. virtual void setDefaultNamespace(::java::lang::String *);
  85. virtual void setNamespaceContext(::javax::xml::namespace$::NamespaceContext *);
  86. virtual ::javax::xml::namespace$::NamespaceContext * getNamespaceContext();
  87. virtual ::java::lang::Object * getProperty(::java::lang::String *);
  88. private:
  89. void writeEncoded(::java::lang::String *, jboolean);
  90. void writeEncodedWithRestrictedChars(::java::lang::String *, jboolean);
  91. jboolean isName(::java::lang::String *);
  92. jboolean isPrefix(::java::lang::String *);
  93. jboolean isNCName(::java::lang::String *);
  94. jboolean isChars(::java::lang::String *);
  95. jboolean isURI(::java::lang::String *);
  96. public: // actually protected
  97. ::java::io::Writer * __attribute__((aligned(__alignof__( ::java::lang::Object)))) writer;
  98. ::java::lang::String * encoding;
  99. jboolean prefixDefaulting;
  100. ::javax::xml::namespace$::NamespaceContext * namespaceContext;
  101. private:
  102. ::java::util::LinkedList * elements;
  103. jboolean inStartElement;
  104. jboolean emptyElement;
  105. ::org::xml::sax::helpers::NamespaceSupport * namespaces;
  106. jint count;
  107. jboolean xml11;
  108. jboolean hasXML11RestrictedChars;
  109. public:
  110. static ::java::lang::Class class$;
  111. };
  112. #endif // __gnu_xml_stream_XMLStreamWriterImpl__