summaryrefslogtreecommitdiff
path: root/libjava/gnu/xml/util/XMLWriter.h
blob: 56252a5c1998d207beed7087c0fe66d2332517cc (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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-

#ifndef __gnu_xml_util_XMLWriter__
#define __gnu_xml_util_XMLWriter__

#pragma interface

#include <java/lang/Object.h>
#include <gcj/array.h>

extern "Java"
{
  namespace gnu
  {
    namespace java
    {
      namespace lang
      {
          class CPStringBuilder;
      }
    }
    namespace xml
    {
      namespace util
      {
          class XMLWriter;
      }
    }
  }
  namespace org
  {
    namespace xml
    {
      namespace sax
      {
          class Attributes;
          class ErrorHandler;
          class Locator;
      }
    }
  }
}

class gnu::xml::util::XMLWriter : public ::java::lang::Object
{

  static jboolean isLineEnd(::java::lang::String *);
public:
  XMLWriter();
  XMLWriter(::java::io::OutputStream *);
  XMLWriter(::java::io::Writer *);
  XMLWriter(::java::io::Writer *, ::java::lang::String *);
private:
  void setEncoding(::java::lang::String *);
public:
  virtual void setWriter(::java::io::Writer *, ::java::lang::String *);
  virtual void setEOL(::java::lang::String *);
  virtual void setErrorHandler(::org::xml::sax::ErrorHandler *);
public: // actually protected
  virtual void fatal(::java::lang::String *, ::java::lang::Exception *);
public:
  virtual void setXhtml(jboolean);
  virtual jboolean isXhtml();
  virtual void setExpandingEntities(jboolean);
  virtual jboolean isExpandingEntities();
  virtual void setPrettyPrinting(jboolean);
  virtual jboolean isPrettyPrinting();
  virtual void setCanonical(jboolean);
  virtual jboolean isCanonical();
  virtual void flush();
  virtual void write(::java::lang::String *);
  virtual void writeElement(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::org::xml::sax::Attributes *, ::java::lang::String *);
  virtual void writeElement(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::org::xml::sax::Attributes *, jint);
  virtual void setDocumentLocator(::org::xml::sax::Locator *);
  virtual void startDocument();
  virtual void endDocument();
private:
  static jboolean isEmptyElementTag(::java::lang::String *);
  static jboolean indentBefore(::java::lang::String *);
  static jboolean spaceBefore(::java::lang::String *);
  static jboolean spacePreserve(::java::lang::String *);
public:
  virtual void startPrefixMapping(::java::lang::String *, ::java::lang::String *);
  virtual void endPrefixMapping(::java::lang::String *);
private:
  void writeStartTag(::java::lang::String *, ::org::xml::sax::Attributes *, jboolean);
public:
  virtual void startElement(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::org::xml::sax::Attributes *);
  virtual void writeEmptyElement(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::org::xml::sax::Attributes *);
  virtual void endElement(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  virtual void characters(JArray< jchar > *, jint, jint);
  virtual void ignorableWhitespace(JArray< jchar > *, jint, jint);
  virtual void processingInstruction(::java::lang::String *, ::java::lang::String *);
  virtual void skippedEntity(::java::lang::String *);
  virtual void startCDATA();
  virtual void endCDATA();
  virtual void startDTD(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  virtual void endDTD();
  virtual void startEntity(::java::lang::String *);
  virtual void endEntity(::java::lang::String *);
  virtual void comment(JArray< jchar > *, jint, jint);
  virtual void notationDecl(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  virtual void unparsedEntityDecl(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  virtual void attributeDecl(::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  virtual void elementDecl(::java::lang::String *, ::java::lang::String *);
  virtual void externalEntityDecl(::java::lang::String *, ::java::lang::String *, ::java::lang::String *);
  virtual void internalEntityDecl(::java::lang::String *, ::java::lang::String *);
private:
  void writeQuotedValue(::java::lang::String *, jint);
  void escapeChars(JArray< jchar > *, jint, jint, jint);
  void newline();
  void doIndent();
  void rawWrite(jchar);
  void rawWrite(::java::lang::String *);
  void rawWrite(JArray< jchar > *, jint, jint);
  static const jint CTX_ENTITY = 1;
  static const jint CTX_ATTRIBUTE = 2;
  static const jint CTX_CONTENT = 3;
  static const jint CTX_UNPARSED = 4;
  static const jint CTX_NAME = 5;
  static ::java::lang::String * sysEOL;
  ::java::io::Writer * __attribute__((aligned(__alignof__( ::java::lang::Object)))) out;
  jboolean inCDATA;
  jint elementNestLevel;
  ::java::lang::String * eol;
  jshort dangerMask;
  ::gnu::java::lang::CPStringBuilder * stringBuf;
  ::org::xml::sax::Locator * locator;
  ::org::xml::sax::ErrorHandler * errHandler;
  jboolean expandingEntities;
  jint entityNestLevel;
  jboolean xhtml;
  jboolean startedDoctype;
  ::java::lang::String * encoding;
  jboolean canonical;
  jboolean inDoctype;
  jboolean inEpilogue;
  jboolean prettyPrinting;
  jint column;
  jboolean noWrap;
  ::java::util::Stack * space;
  static const jint lineLength = 75;
  static ::java::lang::String * xhtmlFullDTD;
  static JArray< ::java::lang::String * > * HTMLlat1x;
  static JArray< ::java::lang::String * > * HTMLsymbolx_GR;
  static JArray< ::java::lang::String * > * HTMLsymbolx_gr;
public:
  static ::java::lang::Class class$;
};

#endif // __gnu_xml_util_XMLWriter__