1 16 19 package org.apache.xml.serializer; 20 21 import java.io.IOException ; 22 import java.io.OutputStream ; 23 import java.io.Writer ; 24 import java.util.Hashtable ; 25 import java.util.Properties ; 26 import java.util.Vector ; 27 28 import javax.xml.transform.SourceLocator ; 29 import javax.xml.transform.Transformer ; 30 31 import org.w3c.dom.Node ; 32 import org.xml.sax.Attributes ; 33 import org.xml.sax.ContentHandler ; 34 import org.xml.sax.Locator ; 35 import org.xml.sax.SAXException ; 36 import org.xml.sax.SAXParseException ; 37 38 42 public class EmptySerializer implements SerializationHandler 43 { 44 protected static final String ERR = "EmptySerializer method not over-ridden"; 45 48 49 private static void throwUnimplementedException() 50 { 51 59 return; 61 } 62 65 public ContentHandler asContentHandler() throws IOException 66 { 67 throwUnimplementedException(); 68 return null; 69 } 70 73 public void setContentHandler(ContentHandler ch) 74 { 75 throwUnimplementedException(); 76 } 77 80 public void close() 81 { 82 throwUnimplementedException(); 83 } 84 87 public Properties getOutputFormat() 88 { 89 throwUnimplementedException(); 90 return null; 91 } 92 95 public OutputStream getOutputStream() 96 { 97 throwUnimplementedException(); 98 return null; 99 } 100 103 public Writer getWriter() 104 { 105 throwUnimplementedException(); 106 return null; 107 } 108 111 public boolean reset() 112 { 113 throwUnimplementedException(); 114 return false; 115 } 116 119 public void serialize(Node node) throws IOException 120 { 121 throwUnimplementedException(); 122 } 123 126 public void setCdataSectionElements(Vector URI_and_localNames) 127 { 128 throwUnimplementedException(); 129 } 130 133 public boolean setEscaping(boolean escape) throws SAXException 134 { 135 throwUnimplementedException(); 136 return false; 137 } 138 141 public void setIndent(boolean indent) 142 { 143 throwUnimplementedException(); 144 } 145 148 public void setIndentAmount(int spaces) 149 { 150 throwUnimplementedException(); 151 } 152 155 public void setOutputFormat(Properties format) 156 { 157 throwUnimplementedException(); 158 } 159 162 public void setOutputStream(OutputStream output) 163 { 164 throwUnimplementedException(); 165 } 166 169 public void setVersion(String version) 170 { 171 throwUnimplementedException(); 172 } 173 176 public void setWriter(Writer writer) 177 { 178 throwUnimplementedException(); 179 } 180 183 public void setTransformer(Transformer transformer) 184 { 185 throwUnimplementedException(); 186 } 187 190 public Transformer getTransformer() 191 { 192 throwUnimplementedException(); 193 return null; 194 } 195 198 public void flushPending() throws SAXException 199 { 200 throwUnimplementedException(); 201 } 202 205 public void addAttribute( 206 String uri, 207 String localName, 208 String rawName, 209 String type, 210 String value) 211 throws SAXException 212 { 213 throwUnimplementedException(); 214 } 215 218 public void addAttributes(Attributes atts) throws SAXException 219 { 220 throwUnimplementedException(); 221 } 222 225 public void addAttribute(String name, String value) 226 { 227 throwUnimplementedException(); 228 } 229 230 233 public void characters(String chars) throws SAXException 234 { 235 throwUnimplementedException(); 236 } 237 240 public void endElement(String elemName) throws SAXException 241 { 242 throwUnimplementedException(); 243 } 244 247 public void startDocument() throws SAXException 248 { 249 throwUnimplementedException(); 250 } 251 254 public void startElement(String uri, String localName, String qName) 255 throws SAXException 256 { 257 throwUnimplementedException(); 258 } 259 262 public void startElement(String qName) throws SAXException 263 { 264 throwUnimplementedException(); 265 } 266 269 public void namespaceAfterStartElement(String uri, String prefix) 270 throws SAXException 271 { 272 throwUnimplementedException(); 273 } 274 277 public boolean startPrefixMapping( 278 String prefix, 279 String uri, 280 boolean shouldFlush) 281 throws SAXException 282 { 283 throwUnimplementedException(); 284 return false; 285 } 286 289 public void entityReference(String entityName) throws SAXException 290 { 291 throwUnimplementedException(); 292 } 293 296 public NamespaceMappings getNamespaceMappings() 297 { 298 throwUnimplementedException(); 299 return null; 300 } 301 304 public String getPrefix(String uri) 305 { 306 throwUnimplementedException(); 307 return null; 308 } 309 312 public String getNamespaceURI(String name, boolean isElement) 313 { 314 throwUnimplementedException(); 315 return null; 316 } 317 320 public String getNamespaceURIFromPrefix(String prefix) 321 { 322 throwUnimplementedException(); 323 return null; 324 } 325 328 public void setDocumentLocator(Locator arg0) 329 { 330 throwUnimplementedException(); 331 } 332 335 public void endDocument() throws SAXException 336 { 337 throwUnimplementedException(); 338 } 339 342 public void startPrefixMapping(String arg0, String arg1) 343 throws SAXException 344 { 345 throwUnimplementedException(); 346 } 347 350 public void endPrefixMapping(String arg0) throws SAXException 351 { 352 throwUnimplementedException(); 353 } 354 357 public void startElement( 358 String arg0, 359 String arg1, 360 String arg2, 361 Attributes arg3) 362 throws SAXException 363 { 364 throwUnimplementedException(); 365 } 366 369 public void endElement(String arg0, String arg1, String arg2) 370 throws SAXException 371 { 372 throwUnimplementedException(); 373 } 374 377 public void characters(char[] arg0, int arg1, int arg2) throws SAXException 378 { 379 throwUnimplementedException(); 380 } 381 384 public void ignorableWhitespace(char[] arg0, int arg1, int arg2) 385 throws SAXException 386 { 387 throwUnimplementedException(); 388 } 389 392 public void processingInstruction(String arg0, String arg1) 393 throws SAXException 394 { 395 throwUnimplementedException(); 396 } 397 400 public void skippedEntity(String arg0) throws SAXException 401 { 402 throwUnimplementedException(); 403 } 404 407 public void comment(String comment) throws SAXException 408 { 409 throwUnimplementedException(); 410 } 411 414 public void startDTD(String arg0, String arg1, String arg2) 415 throws SAXException 416 { 417 throwUnimplementedException(); 418 } 419 422 public void endDTD() throws SAXException 423 { 424 throwUnimplementedException(); 425 } 426 429 public void startEntity(String arg0) throws SAXException 430 { 431 throwUnimplementedException(); 432 } 433 436 public void endEntity(String arg0) throws SAXException 437 { 438 throwUnimplementedException(); 439 } 440 443 public void startCDATA() throws SAXException 444 { 445 throwUnimplementedException(); 446 } 447 450 public void endCDATA() throws SAXException 451 { 452 throwUnimplementedException(); 453 } 454 457 public void comment(char[] arg0, int arg1, int arg2) throws SAXException 458 { 459 throwUnimplementedException(); 460 } 461 464 public String getDoctypePublic() 465 { 466 throwUnimplementedException(); 467 return null; 468 } 469 472 public String getDoctypeSystem() 473 { 474 throwUnimplementedException(); 475 return null; 476 } 477 480 public String getEncoding() 481 { 482 throwUnimplementedException(); 483 return null; 484 } 485 488 public boolean getIndent() 489 { 490 throwUnimplementedException(); 491 return false; 492 } 493 496 public int getIndentAmount() 497 { 498 throwUnimplementedException(); 499 return 0; 500 } 501 504 public String getMediaType() 505 { 506 throwUnimplementedException(); 507 return null; 508 } 509 512 public boolean getOmitXMLDeclaration() 513 { 514 throwUnimplementedException(); 515 return false; 516 } 517 520 public String getStandalone() 521 { 522 throwUnimplementedException(); 523 return null; 524 } 525 528 public String getVersion() 529 { 530 throwUnimplementedException(); 531 return null; 532 } 533 536 public void setCdataSectionElements(Hashtable h) throws Exception 537 { 538 throwUnimplementedException(); 539 } 540 543 public void setDoctype(String system, String pub) 544 { 545 throwUnimplementedException(); 546 } 547 550 public void setDoctypePublic(String doctype) 551 { 552 throwUnimplementedException(); 553 } 554 557 public void setDoctypeSystem(String doctype) 558 { 559 throwUnimplementedException(); 560 } 561 564 public void setEncoding(String encoding) 565 { 566 throwUnimplementedException(); 567 } 568 571 public void setMediaType(String mediatype) 572 { 573 throwUnimplementedException(); 574 } 575 578 public void setOmitXMLDeclaration(boolean b) 579 { 580 throwUnimplementedException(); 581 } 582 585 public void setStandalone(String standalone) 586 { 587 throwUnimplementedException(); 588 } 589 592 public void elementDecl(String arg0, String arg1) throws SAXException 593 { 594 throwUnimplementedException(); 595 } 596 599 public void attributeDecl( 600 String arg0, 601 String arg1, 602 String arg2, 603 String arg3, 604 String arg4) 605 throws SAXException 606 { 607 throwUnimplementedException(); 608 } 609 612 public void internalEntityDecl(String arg0, String arg1) 613 throws SAXException 614 { 615 throwUnimplementedException(); 616 } 617 620 public void externalEntityDecl(String arg0, String arg1, String arg2) 621 throws SAXException 622 { 623 throwUnimplementedException(); 624 } 625 628 public void warning(SAXParseException arg0) throws SAXException 629 { 630 throwUnimplementedException(); 631 } 632 635 public void error(SAXParseException arg0) throws SAXException 636 { 637 throwUnimplementedException(); 638 } 639 642 public void fatalError(SAXParseException arg0) throws SAXException 643 { 644 throwUnimplementedException(); 645 } 646 649 public DOMSerializer asDOMSerializer() throws IOException 650 { 651 throwUnimplementedException(); 652 return null; 653 } 654 655 658 public void setNamespaceMappings(NamespaceMappings mappings) { 659 throwUnimplementedException(); 660 } 661 662 665 public void setSourceLocator(SourceLocator locator) 666 { 667 throwUnimplementedException(); 668 } 669 670 673 public void addUniqueAttribute(String name, String value, int flags) 674 throws SAXException 675 { 676 throwUnimplementedException(); 677 } 678 } 679 | Popular Tags |