1 28 29 package com.caucho.xml; 30 31 import org.xml.sax.Locator ; 32 import org.xml.sax.SAXException ; 33 34 import java.io.IOException ; 35 36 39 public interface XMLWriter { 40 public void setDocumentLocator(Locator locator); 41 42 public void startDocument() 43 throws IOException , SAXException ; 44 45 public void endDocument() 46 throws IOException , SAXException ; 47 48 public void startPrefixMapping(String prefix, String uri) 49 throws IOException , SAXException ; 50 51 public void endPrefixMapping(String prefix) 52 throws IOException , SAXException ; 53 54 public void startElement(String namespaceURI, String localName, String qName) 55 throws IOException , SAXException ; 56 57 public void attribute(String namespaceURI, String localName, String qName, 58 String value) 59 throws IOException , SAXException ; 60 61 public void endElement(String namespaceURI, String localName, String qName) 62 throws IOException , SAXException ; 63 64 public void text(String text) 65 throws IOException , SAXException ; 66 67 public void text(char []buffer, int offset, int length) 68 throws IOException , SAXException ; 69 70 public void cdata(String text) 71 throws IOException , SAXException ; 72 73 public void cdata(char []buffer, int offset, int length) 74 throws IOException , SAXException ; 75 76 public boolean getEscapeText(); 77 78 public void setEscapeText(boolean isEscaped); 79 80 public void processingInstruction(String name, String value) 81 throws IOException , SAXException ; 82 83 public void comment(String value) 84 throws IOException , SAXException ; 85 } 86 | Popular Tags |