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 |
|
package info.magnolia.module.googlesitemap.service; |
35 |
|
|
36 |
|
import javax.xml.namespace.NamespaceContext; |
37 |
|
import javax.xml.stream.XMLStreamException; |
38 |
|
import javax.xml.stream.XMLStreamWriter; |
39 |
|
|
40 |
|
|
41 |
|
@link |
42 |
|
|
|
|
| 0% |
Uncovered Elements: 66 (66) |
Complexity: 33 |
Complexity Density: 1 |
|
43 |
|
class DelegatingXMLStreamWriter implements XMLStreamWriter { |
44 |
|
|
45 |
|
private XMLStreamWriter w; |
46 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
47 |
0
|
public DelegatingXMLStreamWriter(XMLStreamWriter writer) {... |
48 |
0
|
this.w = writer; |
49 |
|
} |
50 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
51 |
0
|
@Override... |
52 |
|
public void writeStartElement(String localName) throws XMLStreamException { |
53 |
0
|
w.writeStartElement(localName); |
54 |
|
} |
55 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
56 |
0
|
@Override... |
57 |
|
public void writeStartElement(String namespaceURI, String localName) throws XMLStreamException { |
58 |
0
|
w.writeStartElement(namespaceURI, localName); |
59 |
|
} |
60 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
61 |
0
|
@Override... |
62 |
|
public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException { |
63 |
0
|
w.writeStartElement(prefix, localName, namespaceURI); |
64 |
|
} |
65 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
66 |
0
|
@Override... |
67 |
|
public void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException { |
68 |
0
|
w.writeEmptyElement(namespaceURI, localName); |
69 |
|
} |
70 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
71 |
0
|
@Override... |
72 |
|
public void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException { |
73 |
0
|
w.writeEmptyElement(prefix, localName, namespaceURI); |
74 |
|
} |
75 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
76 |
0
|
@Override... |
77 |
|
public void writeEmptyElement(String localName) throws XMLStreamException { |
78 |
0
|
w.writeEmptyElement(localName); |
79 |
|
} |
80 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
81 |
0
|
@Override... |
82 |
|
public void writeEndElement() throws XMLStreamException { |
83 |
0
|
w.writeEndElement(); |
84 |
|
} |
85 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
86 |
0
|
@Override... |
87 |
|
public void writeEndDocument() throws XMLStreamException { |
88 |
0
|
w.writeEndDocument(); |
89 |
|
} |
90 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
91 |
0
|
@Override... |
92 |
|
public void close() throws XMLStreamException { |
93 |
0
|
w.close(); |
94 |
|
} |
95 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
96 |
0
|
@Override... |
97 |
|
public void flush() throws XMLStreamException { |
98 |
0
|
w.flush(); |
99 |
|
} |
100 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
101 |
0
|
@Override... |
102 |
|
public void writeAttribute(String localName, String value) throws XMLStreamException { |
103 |
0
|
w.writeAttribute(localName, value); |
104 |
|
} |
105 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
106 |
0
|
@Override... |
107 |
|
public void writeAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException { |
108 |
0
|
w.writeAttribute(prefix, namespaceURI, localName, value); |
109 |
|
} |
110 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
111 |
0
|
@Override... |
112 |
|
public void writeAttribute(String namespaceURI, String localName, String value) throws XMLStreamException { |
113 |
0
|
w.writeAttribute(namespaceURI, localName, value); |
114 |
|
} |
115 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
116 |
0
|
@Override... |
117 |
|
public void writeNamespace(String prefix, String namespaceURI) throws XMLStreamException { |
118 |
0
|
w.writeNamespace(prefix, namespaceURI); |
119 |
|
} |
120 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
121 |
0
|
@Override... |
122 |
|
public void writeDefaultNamespace(String namespaceURI) throws XMLStreamException { |
123 |
0
|
w.writeDefaultNamespace(namespaceURI); |
124 |
|
} |
125 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
126 |
0
|
@Override... |
127 |
|
public void writeComment(String data) throws XMLStreamException { |
128 |
0
|
w.writeComment(data); |
129 |
|
} |
130 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
131 |
0
|
@Override... |
132 |
|
public void writeProcessingInstruction(String target) throws XMLStreamException { |
133 |
0
|
w.writeProcessingInstruction(target); |
134 |
|
} |
135 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
136 |
0
|
@Override... |
137 |
|
public void writeProcessingInstruction(String target, String data) throws XMLStreamException { |
138 |
0
|
w.writeProcessingInstruction(target, data); |
139 |
|
} |
140 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
141 |
0
|
@Override... |
142 |
|
public void writeCData(String data) throws XMLStreamException { |
143 |
0
|
w.writeCData(data); |
144 |
|
} |
145 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
146 |
0
|
@Override... |
147 |
|
public void writeDTD(String dtd) throws XMLStreamException { |
148 |
0
|
w.writeDTD(dtd); |
149 |
|
} |
150 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
151 |
0
|
@Override... |
152 |
|
public void writeEntityRef(String name) throws XMLStreamException { |
153 |
0
|
w.writeEntityRef(name); |
154 |
|
} |
155 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
156 |
0
|
@Override... |
157 |
|
public void writeStartDocument() throws XMLStreamException { |
158 |
0
|
w.writeStartDocument(); |
159 |
|
} |
160 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
161 |
0
|
@Override... |
162 |
|
public void writeStartDocument(String version) throws XMLStreamException { |
163 |
0
|
w.writeStartDocument(version); |
164 |
|
} |
165 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
166 |
0
|
@Override... |
167 |
|
public void writeStartDocument(String encoding, String version) throws XMLStreamException { |
168 |
0
|
w.writeStartDocument(encoding, version); |
169 |
|
} |
170 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
171 |
0
|
@Override... |
172 |
|
public void writeCharacters(String text) throws XMLStreamException { |
173 |
0
|
w.writeCharacters(text); |
174 |
|
} |
175 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
176 |
0
|
@Override... |
177 |
|
public void writeCharacters(char[] text, int start, int len) throws XMLStreamException { |
178 |
0
|
w.writeCharacters(text, start, len); |
179 |
|
} |
180 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
181 |
0
|
@Override... |
182 |
|
public String getPrefix(String uri) throws XMLStreamException { |
183 |
0
|
return w.getPrefix(uri); |
184 |
|
} |
185 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
186 |
0
|
@Override... |
187 |
|
public void setPrefix(String prefix, String uri) throws XMLStreamException { |
188 |
0
|
w.setPrefix(prefix, uri); |
189 |
|
} |
190 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
191 |
0
|
@Override... |
192 |
|
public void setDefaultNamespace(String uri) throws XMLStreamException { |
193 |
0
|
w.setDefaultNamespace(uri); |
194 |
|
} |
195 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
196 |
0
|
@Override... |
197 |
|
public void setNamespaceContext(NamespaceContext context) throws XMLStreamException { |
198 |
0
|
w.setNamespaceContext(context); |
199 |
|
} |
200 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
201 |
0
|
@Override... |
202 |
|
public NamespaceContext getNamespaceContext() { |
203 |
0
|
return w.getNamespaceContext(); |
204 |
|
} |
205 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
206 |
0
|
@Override... |
207 |
|
public Object getProperty(String name) throws IllegalArgumentException { |
208 |
0
|
return w.getProperty(name); |
209 |
|
} |
210 |
|
} |