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