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, warningpublic ContentWriter(String file) throws IOException
IOExceptionpublic ContentWriter(String file, String encoding) throws IOException
IOExceptionpublic void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlerstartElement in class DefaultHandlerSAXExceptionpublic void characters(char[] buf,
int start,
int len)
throws SAXException
characters in interface ContentHandlercharacters in class DefaultHandlerSAXExceptionpublic void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlerendElement in class DefaultHandlerSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXException