public class ContentWriter extends DefaultHandler
Constructor and Description |
---|
ContentWriter(String file) |
ContentWriter(String file,
String encoding) |
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] buf,
int start,
int len) |
void |
endDocument() |
void |
endElement(String namespaceURI,
String localName,
String qName) |
protected String |
escape(String attrval) |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts) |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public ContentWriter(String file) throws IOException
IOException
public ContentWriter(String file, String encoding) throws IOException
IOException
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
startElement
in class DefaultHandler
SAXException
public void characters(char[] buf, int start, int len) throws SAXException
characters
in interface ContentHandler
characters
in class DefaultHandler
SAXException
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
endElement
in class DefaultHandler
SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException