6
|
1 |
/*
|
|
2 |
* reserved comment block
|
|
3 |
* DO NOT REMOVE OR ALTER!
|
|
4 |
*/
|
|
5 |
/*
|
|
6 |
* Copyright 2003-2004 The Apache Software Foundation.
|
|
7 |
*
|
|
8 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9 |
* you may not use this file except in compliance with the License.
|
|
10 |
* You may obtain a copy of the License at
|
|
11 |
*
|
|
12 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13 |
*
|
|
14 |
* Unless required by applicable law or agreed to in writing, software
|
|
15 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
16 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
17 |
* See the License for the specific language governing permissions and
|
|
18 |
* limitations under the License.
|
|
19 |
*/
|
|
20 |
/*
|
|
21 |
* $Id: EmptySerializer.java,v 1.2.4.1 2005/09/15 08:15:16 suresh_emailid Exp $
|
|
22 |
*/
|
|
23 |
package com.sun.org.apache.xml.internal.serializer;
|
|
24 |
|
|
25 |
import java.io.IOException;
|
|
26 |
import java.io.OutputStream;
|
|
27 |
import java.io.Writer;
|
|
28 |
import java.util.Hashtable;
|
|
29 |
import java.util.Properties;
|
|
30 |
import java.util.Vector;
|
|
31 |
|
|
32 |
import javax.xml.transform.SourceLocator;
|
|
33 |
import javax.xml.transform.Transformer;
|
|
34 |
|
|
35 |
import org.w3c.dom.Node;
|
|
36 |
import org.xml.sax.Attributes;
|
|
37 |
import org.xml.sax.ContentHandler;
|
|
38 |
import org.xml.sax.Locator;
|
|
39 |
import org.xml.sax.SAXException;
|
|
40 |
import org.xml.sax.SAXParseException;
|
|
41 |
|
|
42 |
/**
|
|
43 |
* This class is an adapter class. Its only purpose is to be extended and
|
|
44 |
* for that extended class to over-ride all methods that are to be used.
|
|
45 |
*
|
|
46 |
* This class is not a public API, it is only public because it is used
|
|
47 |
* across package boundaries.
|
|
48 |
*
|
|
49 |
* @xsl.usage internal
|
|
50 |
*/
|
|
51 |
public class EmptySerializer implements SerializationHandler
|
|
52 |
{
|
|
53 |
protected static final String ERR = "EmptySerializer method not over-ridden";
|
|
54 |
/**
|
|
55 |
* @see SerializationHandler#asContentHandler()
|
|
56 |
*/
|
|
57 |
|
|
58 |
protected void couldThrowIOException() throws IOException
|
|
59 |
{
|
|
60 |
return; // don't do anything.
|
|
61 |
}
|
|
62 |
|
|
63 |
protected void couldThrowSAXException() throws SAXException
|
|
64 |
{
|
|
65 |
return; // don't do anything.
|
|
66 |
}
|
|
67 |
|
|
68 |
protected void couldThrowSAXException(char[] chars, int off, int len) throws SAXException
|
|
69 |
{
|
|
70 |
return; // don't do anything.
|
|
71 |
}
|
|
72 |
|
|
73 |
protected void couldThrowSAXException(String elemQName) throws SAXException
|
|
74 |
{
|
|
75 |
return; // don't do anything.
|
|
76 |
}
|
|
77 |
|
|
78 |
protected void couldThrowException() throws Exception
|
|
79 |
{
|
|
80 |
return; // don't do anything.
|
|
81 |
}
|
|
82 |
|
|
83 |
void aMethodIsCalled()
|
|
84 |
{
|
|
85 |
|
|
86 |
// throw new RuntimeException(err);
|
|
87 |
return;
|
|
88 |
}
|
|
89 |
|
|
90 |
|
|
91 |
/**
|
|
92 |
* @see SerializationHandler#asContentHandler()
|
|
93 |
*/
|
|
94 |
public ContentHandler asContentHandler() throws IOException
|
|
95 |
{
|
|
96 |
couldThrowIOException();
|
|
97 |
return null;
|
|
98 |
}
|
|
99 |
/**
|
|
100 |
* @see SerializationHandler#setContentHandler(org.xml.sax.ContentHandler)
|
|
101 |
*/
|
|
102 |
public void setContentHandler(ContentHandler ch)
|
|
103 |
{
|
|
104 |
aMethodIsCalled();
|
|
105 |
}
|
|
106 |
/**
|
|
107 |
* @see SerializationHandler#close()
|
|
108 |
*/
|
|
109 |
public void close()
|
|
110 |
{
|
|
111 |
aMethodIsCalled();
|
|
112 |
}
|
|
113 |
/**
|
|
114 |
* @see SerializationHandler#getOutputFormat()
|
|
115 |
*/
|
|
116 |
public Properties getOutputFormat()
|
|
117 |
{
|
|
118 |
aMethodIsCalled();
|
|
119 |
return null;
|
|
120 |
}
|
|
121 |
/**
|
|
122 |
* @see SerializationHandler#getOutputStream()
|
|
123 |
*/
|
|
124 |
public OutputStream getOutputStream()
|
|
125 |
{
|
|
126 |
aMethodIsCalled();
|
|
127 |
return null;
|
|
128 |
}
|
|
129 |
/**
|
|
130 |
* @see SerializationHandler#getWriter()
|
|
131 |
*/
|
|
132 |
public Writer getWriter()
|
|
133 |
{
|
|
134 |
aMethodIsCalled();
|
|
135 |
return null;
|
|
136 |
}
|
|
137 |
/**
|
|
138 |
* @see SerializationHandler#reset()
|
|
139 |
*/
|
|
140 |
public boolean reset()
|
|
141 |
{
|
|
142 |
aMethodIsCalled();
|
|
143 |
return false;
|
|
144 |
}
|
|
145 |
/**
|
|
146 |
* @see SerializationHandler#serialize(org.w3c.dom.Node)
|
|
147 |
*/
|
|
148 |
public void serialize(Node node) throws IOException
|
|
149 |
{
|
|
150 |
couldThrowIOException();
|
|
151 |
}
|
|
152 |
/**
|
|
153 |
* @see SerializationHandler#setCdataSectionElements(java.util.Vector)
|
|
154 |
*/
|
|
155 |
public void setCdataSectionElements(Vector URI_and_localNames)
|
|
156 |
{
|
|
157 |
aMethodIsCalled();
|
|
158 |
}
|
|
159 |
/**
|
|
160 |
* @see SerializationHandler#setEscaping(boolean)
|
|
161 |
*/
|
|
162 |
public boolean setEscaping(boolean escape) throws SAXException
|
|
163 |
{
|
|
164 |
couldThrowSAXException();
|
|
165 |
return false;
|
|
166 |
}
|
|
167 |
/**
|
|
168 |
* @see SerializationHandler#setIndent(boolean)
|
|
169 |
*/
|
|
170 |
public void setIndent(boolean indent)
|
|
171 |
{
|
|
172 |
aMethodIsCalled();
|
|
173 |
}
|
|
174 |
/**
|
|
175 |
* @see SerializationHandler#setIndentAmount(int)
|
|
176 |
*/
|
|
177 |
public void setIndentAmount(int spaces)
|
|
178 |
{
|
|
179 |
aMethodIsCalled();
|
|
180 |
}
|
|
181 |
/**
|
|
182 |
* @see SerializationHandler#setOutputFormat(java.util.Properties)
|
|
183 |
*/
|
|
184 |
public void setOutputFormat(Properties format)
|
|
185 |
{
|
|
186 |
aMethodIsCalled();
|
|
187 |
}
|
|
188 |
/**
|
|
189 |
* @see SerializationHandler#setOutputStream(java.io.OutputStream)
|
|
190 |
*/
|
|
191 |
public void setOutputStream(OutputStream output)
|
|
192 |
{
|
|
193 |
aMethodIsCalled();
|
|
194 |
}
|
|
195 |
/**
|
|
196 |
* @see SerializationHandler#setVersion(java.lang.String)
|
|
197 |
*/
|
|
198 |
public void setVersion(String version)
|
|
199 |
{
|
|
200 |
aMethodIsCalled();
|
|
201 |
}
|
|
202 |
/**
|
|
203 |
* @see SerializationHandler#setWriter(java.io.Writer)
|
|
204 |
*/
|
|
205 |
public void setWriter(Writer writer)
|
|
206 |
{
|
|
207 |
aMethodIsCalled();
|
|
208 |
}
|
|
209 |
/**
|
|
210 |
* @see SerializationHandler#setTransformer(javax.xml.transform.Transformer)
|
|
211 |
*/
|
|
212 |
public void setTransformer(Transformer transformer)
|
|
213 |
{
|
|
214 |
aMethodIsCalled();
|
|
215 |
}
|
|
216 |
/**
|
|
217 |
* @see SerializationHandler#getTransformer()
|
|
218 |
*/
|
|
219 |
public Transformer getTransformer()
|
|
220 |
{
|
|
221 |
aMethodIsCalled();
|
|
222 |
return null;
|
|
223 |
}
|
|
224 |
/**
|
|
225 |
* @see SerializationHandler#flushPending()
|
|
226 |
*/
|
|
227 |
public void flushPending() throws SAXException
|
|
228 |
{
|
|
229 |
couldThrowSAXException();
|
|
230 |
}
|
|
231 |
/**
|
|
232 |
* @see ExtendedContentHandler#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
|
|
233 |
*/
|
|
234 |
public void addAttribute(
|
|
235 |
String uri,
|
|
236 |
String localName,
|
|
237 |
String rawName,
|
|
238 |
String type,
|
|
239 |
String value,
|
|
240 |
boolean XSLAttribute)
|
|
241 |
throws SAXException
|
|
242 |
{
|
|
243 |
couldThrowSAXException();
|
|
244 |
}
|
|
245 |
/**
|
|
246 |
* @see ExtendedContentHandler#addAttributes(org.xml.sax.Attributes)
|
|
247 |
*/
|
|
248 |
public void addAttributes(Attributes atts) throws SAXException
|
|
249 |
{
|
|
250 |
couldThrowSAXException();
|
|
251 |
}
|
|
252 |
/**
|
|
253 |
* @see ExtendedContentHandler#addAttribute(java.lang.String, java.lang.String)
|
|
254 |
*/
|
|
255 |
public void addAttribute(String name, String value)
|
|
256 |
{
|
|
257 |
aMethodIsCalled();
|
|
258 |
}
|
|
259 |
|
|
260 |
/**
|
|
261 |
* @see ExtendedContentHandler#characters(java.lang.String)
|
|
262 |
*/
|
|
263 |
public void characters(String chars) throws SAXException
|
|
264 |
{
|
|
265 |
couldThrowSAXException();
|
|
266 |
}
|
|
267 |
/**
|
|
268 |
* @see ExtendedContentHandler#endElement(java.lang.String)
|
|
269 |
*/
|
|
270 |
public void endElement(String elemName) throws SAXException
|
|
271 |
{
|
|
272 |
couldThrowSAXException();
|
|
273 |
}
|
|
274 |
/**
|
|
275 |
* @see ExtendedContentHandler#startDocument()
|
|
276 |
*/
|
|
277 |
public void startDocument() throws SAXException
|
|
278 |
{
|
|
279 |
couldThrowSAXException();
|
|
280 |
}
|
|
281 |
/**
|
|
282 |
* @see ExtendedContentHandler#startElement(java.lang.String, java.lang.String, java.lang.String)
|
|
283 |
*/
|
|
284 |
public void startElement(String uri, String localName, String qName)
|
|
285 |
throws SAXException
|
|
286 |
{
|
|
287 |
couldThrowSAXException(qName);
|
|
288 |
}
|
|
289 |
/**
|
|
290 |
* @see ExtendedContentHandler#startElement(java.lang.String)
|
|
291 |
*/
|
|
292 |
public void startElement(String qName) throws SAXException
|
|
293 |
{
|
|
294 |
couldThrowSAXException(qName);
|
|
295 |
}
|
|
296 |
/**
|
|
297 |
* @see ExtendedContentHandler#namespaceAfterStartElement(java.lang.String, java.lang.String)
|
|
298 |
*/
|
|
299 |
public void namespaceAfterStartElement(String uri, String prefix)
|
|
300 |
throws SAXException
|
|
301 |
{
|
|
302 |
couldThrowSAXException();
|
|
303 |
}
|
|
304 |
/**
|
|
305 |
* @see ExtendedContentHandler#startPrefixMapping(java.lang.String, java.lang.String, boolean)
|
|
306 |
*/
|
|
307 |
public boolean startPrefixMapping(
|
|
308 |
String prefix,
|
|
309 |
String uri,
|
|
310 |
boolean shouldFlush)
|
|
311 |
throws SAXException
|
|
312 |
{
|
|
313 |
couldThrowSAXException();
|
|
314 |
return false;
|
|
315 |
}
|
|
316 |
/**
|
|
317 |
* @see ExtendedContentHandler#entityReference(java.lang.String)
|
|
318 |
*/
|
|
319 |
public void entityReference(String entityName) throws SAXException
|
|
320 |
{
|
|
321 |
couldThrowSAXException();
|
|
322 |
}
|
|
323 |
/**
|
|
324 |
* @see ExtendedContentHandler#getNamespaceMappings()
|
|
325 |
*/
|
|
326 |
public NamespaceMappings getNamespaceMappings()
|
|
327 |
{
|
|
328 |
aMethodIsCalled();
|
|
329 |
return null;
|
|
330 |
}
|
|
331 |
/**
|
|
332 |
* @see ExtendedContentHandler#getPrefix(java.lang.String)
|
|
333 |
*/
|
|
334 |
public String getPrefix(String uri)
|
|
335 |
{
|
|
336 |
aMethodIsCalled();
|
|
337 |
return null;
|
|
338 |
}
|
|
339 |
/**
|
|
340 |
* @see ExtendedContentHandler#getNamespaceURI(java.lang.String, boolean)
|
|
341 |
*/
|
|
342 |
public String getNamespaceURI(String name, boolean isElement)
|
|
343 |
{
|
|
344 |
aMethodIsCalled();
|
|
345 |
return null;
|
|
346 |
}
|
|
347 |
/**
|
|
348 |
* @see ExtendedContentHandler#getNamespaceURIFromPrefix(java.lang.String)
|
|
349 |
*/
|
|
350 |
public String getNamespaceURIFromPrefix(String prefix)
|
|
351 |
{
|
|
352 |
aMethodIsCalled();
|
|
353 |
return null;
|
|
354 |
}
|
|
355 |
/**
|
|
356 |
* @see org.xml.sax.ContentHandler#setDocumentLocator(org.xml.sax.Locator)
|
|
357 |
*/
|
|
358 |
public void setDocumentLocator(Locator arg0)
|
|
359 |
{
|
|
360 |
aMethodIsCalled();
|
|
361 |
}
|
|
362 |
/**
|
|
363 |
* @see org.xml.sax.ContentHandler#endDocument()
|
|
364 |
*/
|
|
365 |
public void endDocument() throws SAXException
|
|
366 |
{
|
|
367 |
couldThrowSAXException();
|
|
368 |
}
|
|
369 |
/**
|
|
370 |
* @see org.xml.sax.ContentHandler#startPrefixMapping(java.lang.String, java.lang.String)
|
|
371 |
*/
|
|
372 |
public void startPrefixMapping(String arg0, String arg1)
|
|
373 |
throws SAXException
|
|
374 |
{
|
|
375 |
couldThrowSAXException();
|
|
376 |
}
|
|
377 |
/**
|
|
378 |
* @see org.xml.sax.ContentHandler#endPrefixMapping(java.lang.String)
|
|
379 |
*/
|
|
380 |
public void endPrefixMapping(String arg0) throws SAXException
|
|
381 |
{
|
|
382 |
couldThrowSAXException();
|
|
383 |
}
|
|
384 |
/**
|
|
385 |
* @see org.xml.sax.ContentHandler#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
|
|
386 |
*/
|
|
387 |
public void startElement(
|
|
388 |
String arg0,
|
|
389 |
String arg1,
|
|
390 |
String arg2,
|
|
391 |
Attributes arg3)
|
|
392 |
throws SAXException
|
|
393 |
{
|
|
394 |
couldThrowSAXException();
|
|
395 |
}
|
|
396 |
/**
|
|
397 |
* @see org.xml.sax.ContentHandler#endElement(java.lang.String, java.lang.String, java.lang.String)
|
|
398 |
*/
|
|
399 |
public void endElement(String arg0, String arg1, String arg2)
|
|
400 |
throws SAXException
|
|
401 |
{
|
|
402 |
couldThrowSAXException();
|
|
403 |
}
|
|
404 |
/**
|
|
405 |
* @see org.xml.sax.ContentHandler#characters(char[], int, int)
|
|
406 |
*/
|
|
407 |
public void characters(char[] arg0, int arg1, int arg2) throws SAXException
|
|
408 |
{
|
|
409 |
couldThrowSAXException(arg0, arg1, arg2);
|
|
410 |
}
|
|
411 |
/**
|
|
412 |
* @see org.xml.sax.ContentHandler#ignorableWhitespace(char[], int, int)
|
|
413 |
*/
|
|
414 |
public void ignorableWhitespace(char[] arg0, int arg1, int arg2)
|
|
415 |
throws SAXException
|
|
416 |
{
|
|
417 |
couldThrowSAXException();
|
|
418 |
}
|
|
419 |
/**
|
|
420 |
* @see org.xml.sax.ContentHandler#processingInstruction(java.lang.String, java.lang.String)
|
|
421 |
*/
|
|
422 |
public void processingInstruction(String arg0, String arg1)
|
|
423 |
throws SAXException
|
|
424 |
{
|
|
425 |
couldThrowSAXException();
|
|
426 |
}
|
|
427 |
/**
|
|
428 |
* @see org.xml.sax.ContentHandler#skippedEntity(java.lang.String)
|
|
429 |
*/
|
|
430 |
public void skippedEntity(String arg0) throws SAXException
|
|
431 |
{
|
|
432 |
couldThrowSAXException();
|
|
433 |
}
|
|
434 |
/**
|
|
435 |
* @see ExtendedLexicalHandler#comment(java.lang.String)
|
|
436 |
*/
|
|
437 |
public void comment(String comment) throws SAXException
|
|
438 |
{
|
|
439 |
couldThrowSAXException();
|
|
440 |
}
|
|
441 |
/**
|
|
442 |
* @see org.xml.sax.ext.LexicalHandler#startDTD(java.lang.String, java.lang.String, java.lang.String)
|
|
443 |
*/
|
|
444 |
public void startDTD(String arg0, String arg1, String arg2)
|
|
445 |
throws SAXException
|
|
446 |
{
|
|
447 |
couldThrowSAXException();
|
|
448 |
}
|
|
449 |
/**
|
|
450 |
* @see org.xml.sax.ext.LexicalHandler#endDTD()
|
|
451 |
*/
|
|
452 |
public void endDTD() throws SAXException
|
|
453 |
{
|
|
454 |
couldThrowSAXException();
|
|
455 |
}
|
|
456 |
/**
|
|
457 |
* @see org.xml.sax.ext.LexicalHandler#startEntity(java.lang.String)
|
|
458 |
*/
|
|
459 |
public void startEntity(String arg0) throws SAXException
|
|
460 |
{
|
|
461 |
couldThrowSAXException();
|
|
462 |
}
|
|
463 |
/**
|
|
464 |
* @see org.xml.sax.ext.LexicalHandler#endEntity(java.lang.String)
|
|
465 |
*/
|
|
466 |
public void endEntity(String arg0) throws SAXException
|
|
467 |
{
|
|
468 |
couldThrowSAXException();
|
|
469 |
}
|
|
470 |
/**
|
|
471 |
* @see org.xml.sax.ext.LexicalHandler#startCDATA()
|
|
472 |
*/
|
|
473 |
public void startCDATA() throws SAXException
|
|
474 |
{
|
|
475 |
couldThrowSAXException();
|
|
476 |
}
|
|
477 |
/**
|
|
478 |
* @see org.xml.sax.ext.LexicalHandler#endCDATA()
|
|
479 |
*/
|
|
480 |
public void endCDATA() throws SAXException
|
|
481 |
{
|
|
482 |
couldThrowSAXException();
|
|
483 |
}
|
|
484 |
/**
|
|
485 |
* @see org.xml.sax.ext.LexicalHandler#comment(char[], int, int)
|
|
486 |
*/
|
|
487 |
public void comment(char[] arg0, int arg1, int arg2) throws SAXException
|
|
488 |
{
|
|
489 |
couldThrowSAXException();
|
|
490 |
}
|
|
491 |
/**
|
|
492 |
* @see XSLOutputAttributes#getDoctypePublic()
|
|
493 |
*/
|
|
494 |
public String getDoctypePublic()
|
|
495 |
{
|
|
496 |
aMethodIsCalled();
|
|
497 |
return null;
|
|
498 |
}
|
|
499 |
/**
|
|
500 |
* @see XSLOutputAttributes#getDoctypeSystem()
|
|
501 |
*/
|
|
502 |
public String getDoctypeSystem()
|
|
503 |
{
|
|
504 |
aMethodIsCalled();
|
|
505 |
return null;
|
|
506 |
}
|
|
507 |
/**
|
|
508 |
* @see XSLOutputAttributes#getEncoding()
|
|
509 |
*/
|
|
510 |
public String getEncoding()
|
|
511 |
{
|
|
512 |
aMethodIsCalled();
|
|
513 |
return null;
|
|
514 |
}
|
|
515 |
/**
|
|
516 |
* @see XSLOutputAttributes#getIndent()
|
|
517 |
*/
|
|
518 |
public boolean getIndent()
|
|
519 |
{
|
|
520 |
aMethodIsCalled();
|
|
521 |
return false;
|
|
522 |
}
|
|
523 |
/**
|
|
524 |
* @see XSLOutputAttributes#getIndentAmount()
|
|
525 |
*/
|
|
526 |
public int getIndentAmount()
|
|
527 |
{
|
|
528 |
aMethodIsCalled();
|
|
529 |
return 0;
|
|
530 |
}
|
|
531 |
/**
|
|
532 |
* @see XSLOutputAttributes#getMediaType()
|
|
533 |
*/
|
|
534 |
public String getMediaType()
|
|
535 |
{
|
|
536 |
aMethodIsCalled();
|
|
537 |
return null;
|
|
538 |
}
|
|
539 |
/**
|
|
540 |
* @see XSLOutputAttributes#getOmitXMLDeclaration()
|
|
541 |
*/
|
|
542 |
public boolean getOmitXMLDeclaration()
|
|
543 |
{
|
|
544 |
aMethodIsCalled();
|
|
545 |
return false;
|
|
546 |
}
|
|
547 |
/**
|
|
548 |
* @see XSLOutputAttributes#getStandalone()
|
|
549 |
*/
|
|
550 |
public String getStandalone()
|
|
551 |
{
|
|
552 |
aMethodIsCalled();
|
|
553 |
return null;
|
|
554 |
}
|
|
555 |
/**
|
|
556 |
* @see XSLOutputAttributes#getVersion()
|
|
557 |
*/
|
|
558 |
public String getVersion()
|
|
559 |
{
|
|
560 |
aMethodIsCalled();
|
|
561 |
return null;
|
|
562 |
}
|
|
563 |
/**
|
|
564 |
* @see XSLOutputAttributes#setCdataSectionElements
|
|
565 |
*/
|
|
566 |
public void setCdataSectionElements(Hashtable h) throws Exception
|
|
567 |
{
|
|
568 |
couldThrowException();
|
|
569 |
}
|
|
570 |
/**
|
|
571 |
* @see XSLOutputAttributes#setDoctype(java.lang.String, java.lang.String)
|
|
572 |
*/
|
|
573 |
public void setDoctype(String system, String pub)
|
|
574 |
{
|
|
575 |
aMethodIsCalled();
|
|
576 |
}
|
|
577 |
/**
|
|
578 |
* @see XSLOutputAttributes#setDoctypePublic(java.lang.String)
|
|
579 |
*/
|
|
580 |
public void setDoctypePublic(String doctype)
|
|
581 |
{
|
|
582 |
aMethodIsCalled();
|
|
583 |
}
|
|
584 |
/**
|
|
585 |
* @see XSLOutputAttributes#setDoctypeSystem(java.lang.String)
|
|
586 |
*/
|
|
587 |
public void setDoctypeSystem(String doctype)
|
|
588 |
{
|
|
589 |
aMethodIsCalled();
|
|
590 |
}
|
|
591 |
/**
|
|
592 |
* @see XSLOutputAttributes#setEncoding(java.lang.String)
|
|
593 |
*/
|
|
594 |
public void setEncoding(String encoding)
|
|
595 |
{
|
|
596 |
aMethodIsCalled();
|
|
597 |
}
|
|
598 |
/**
|
|
599 |
* @see XSLOutputAttributes#setMediaType(java.lang.String)
|
|
600 |
*/
|
|
601 |
public void setMediaType(String mediatype)
|
|
602 |
{
|
|
603 |
aMethodIsCalled();
|
|
604 |
}
|
|
605 |
/**
|
|
606 |
* @see XSLOutputAttributes#setOmitXMLDeclaration(boolean)
|
|
607 |
*/
|
|
608 |
public void setOmitXMLDeclaration(boolean b)
|
|
609 |
{
|
|
610 |
aMethodIsCalled();
|
|
611 |
}
|
|
612 |
/**
|
|
613 |
* @see XSLOutputAttributes#setStandalone(java.lang.String)
|
|
614 |
*/
|
|
615 |
public void setStandalone(String standalone)
|
|
616 |
{
|
|
617 |
aMethodIsCalled();
|
|
618 |
}
|
|
619 |
/**
|
|
620 |
* @see org.xml.sax.ext.DeclHandler#elementDecl(java.lang.String, java.lang.String)
|
|
621 |
*/
|
|
622 |
public void elementDecl(String arg0, String arg1) throws SAXException
|
|
623 |
{
|
|
624 |
couldThrowSAXException();
|
|
625 |
}
|
|
626 |
/**
|
|
627 |
* @see org.xml.sax.ext.DeclHandler#attributeDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
|
|
628 |
*/
|
|
629 |
public void attributeDecl(
|
|
630 |
String arg0,
|
|
631 |
String arg1,
|
|
632 |
String arg2,
|
|
633 |
String arg3,
|
|
634 |
String arg4)
|
|
635 |
throws SAXException
|
|
636 |
{
|
|
637 |
couldThrowSAXException();
|
|
638 |
}
|
|
639 |
/**
|
|
640 |
* @see org.xml.sax.ext.DeclHandler#internalEntityDecl(java.lang.String, java.lang.String)
|
|
641 |
*/
|
|
642 |
public void internalEntityDecl(String arg0, String arg1)
|
|
643 |
throws SAXException
|
|
644 |
{
|
|
645 |
couldThrowSAXException();
|
|
646 |
}
|
|
647 |
/**
|
|
648 |
* @see org.xml.sax.ext.DeclHandler#externalEntityDecl(java.lang.String, java.lang.String, java.lang.String)
|
|
649 |
*/
|
|
650 |
public void externalEntityDecl(String arg0, String arg1, String arg2)
|
|
651 |
throws SAXException
|
|
652 |
{
|
|
653 |
couldThrowSAXException();
|
|
654 |
}
|
|
655 |
/**
|
|
656 |
* @see org.xml.sax.ErrorHandler#warning(org.xml.sax.SAXParseException)
|
|
657 |
*/
|
|
658 |
public void warning(SAXParseException arg0) throws SAXException
|
|
659 |
{
|
|
660 |
couldThrowSAXException();
|
|
661 |
}
|
|
662 |
/**
|
|
663 |
* @see org.xml.sax.ErrorHandler#error(org.xml.sax.SAXParseException)
|
|
664 |
*/
|
|
665 |
public void error(SAXParseException arg0) throws SAXException
|
|
666 |
{
|
|
667 |
couldThrowSAXException();
|
|
668 |
}
|
|
669 |
/**
|
|
670 |
* @see org.xml.sax.ErrorHandler#fatalError(org.xml.sax.SAXParseException)
|
|
671 |
*/
|
|
672 |
public void fatalError(SAXParseException arg0) throws SAXException
|
|
673 |
{
|
|
674 |
couldThrowSAXException();
|
|
675 |
}
|
|
676 |
/**
|
|
677 |
* @see Serializer#asDOMSerializer()
|
|
678 |
*/
|
|
679 |
public DOMSerializer asDOMSerializer() throws IOException
|
|
680 |
{
|
|
681 |
couldThrowIOException();
|
|
682 |
return null;
|
|
683 |
}
|
|
684 |
|
|
685 |
/**
|
|
686 |
* @see SerializationHandler#setNamespaceMappings(NamespaceMappings)
|
|
687 |
*/
|
|
688 |
public void setNamespaceMappings(NamespaceMappings mappings) {
|
|
689 |
aMethodIsCalled();
|
|
690 |
}
|
|
691 |
|
|
692 |
/**
|
|
693 |
* @see ExtendedContentHandler#setSourceLocator(javax.xml.transform.SourceLocator)
|
|
694 |
*/
|
|
695 |
public void setSourceLocator(SourceLocator locator)
|
|
696 |
{
|
|
697 |
aMethodIsCalled();
|
|
698 |
}
|
|
699 |
|
|
700 |
/**
|
|
701 |
* @see ExtendedContentHandler#addUniqueAttribute(java.lang.String, java.lang.String, int)
|
|
702 |
*/
|
|
703 |
public void addUniqueAttribute(String name, String value, int flags)
|
|
704 |
throws SAXException
|
|
705 |
{
|
|
706 |
couldThrowSAXException();
|
|
707 |
}
|
|
708 |
|
|
709 |
/**
|
|
710 |
* @see ExtendedContentHandler#characters(org.w3c.dom.Node)
|
|
711 |
*/
|
|
712 |
public void characters(Node node) throws SAXException
|
|
713 |
{
|
|
714 |
couldThrowSAXException();
|
|
715 |
}
|
|
716 |
|
|
717 |
/**
|
|
718 |
* @see ExtendedContentHandler#addXSLAttribute(java.lang.String, java.lang.String, java.lang.String)
|
|
719 |
*/
|
|
720 |
public void addXSLAttribute(String qName, String value, String uri)
|
|
721 |
{
|
|
722 |
aMethodIsCalled();
|
|
723 |
}
|
|
724 |
|
|
725 |
/**
|
|
726 |
* @see ExtendedContentHandler#addAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
|
|
727 |
*/
|
|
728 |
public void addAttribute(String uri, String localName, String rawName, String type, String value) throws SAXException
|
|
729 |
{
|
|
730 |
couldThrowSAXException();
|
|
731 |
}
|
|
732 |
/**
|
|
733 |
* @see org.xml.sax.DTDHandler#notationDecl(java.lang.String, java.lang.String, java.lang.String)
|
|
734 |
*/
|
|
735 |
public void notationDecl(String arg0, String arg1, String arg2) throws SAXException
|
|
736 |
{
|
|
737 |
couldThrowSAXException();
|
|
738 |
}
|
|
739 |
|
|
740 |
/**
|
|
741 |
* @see org.xml.sax.DTDHandler#unparsedEntityDecl(java.lang.String, java.lang.String, java.lang.String, java.lang.String)
|
|
742 |
*/
|
|
743 |
public void unparsedEntityDecl(
|
|
744 |
String arg0,
|
|
745 |
String arg1,
|
|
746 |
String arg2,
|
|
747 |
String arg3)
|
|
748 |
throws SAXException {
|
|
749 |
couldThrowSAXException();
|
|
750 |
}
|
|
751 |
|
|
752 |
/**
|
|
753 |
* @see SerializationHandler#setDTDEntityExpansion(boolean)
|
|
754 |
*/
|
|
755 |
public void setDTDEntityExpansion(boolean expand) {
|
|
756 |
aMethodIsCalled();
|
|
757 |
|
|
758 |
}
|
|
759 |
}
|