| Modifier and Type | Class and Description |
|---|---|
protected static class |
XmlGenerator.AttributesBuilder |
| Constructor and Description |
|---|
XmlGenerator() |
| Modifier and Type | Method and Description |
|---|---|
protected XmlGenerator.AttributesBuilder |
attribute(String name,
String value) |
protected XmlGenerator.AttributesBuilder |
attribute(String prefix,
String name,
String value) |
protected void |
characters(char[] ch,
int start,
int length) |
protected void |
characters(CharSequence content) |
protected void |
comment(CharSequence content) |
protected void |
endDocument() |
protected void |
endElement(String localName) |
protected void |
endElement(String prefix,
String localName) |
protected void |
endElementSameLine(String prefix,
String localName) |
protected void |
endPrefixMapping(String prefix) |
protected abstract void |
generate() |
protected static Document |
generate(XmlGenerator generator) |
protected static void |
generate(XmlGenerator generator,
OutputStream stream) |
protected static void |
generate(XmlGenerator generator,
Writer writer) |
ContentHandler |
getContentHandler() |
DTDHandler |
getDTDHandler() |
EntityResolver |
getEntityResolver() |
ErrorHandler |
getErrorHandler() |
boolean |
getFeature(String name) |
Object |
getProperty(String name) |
void |
parse(InputSource input) |
void |
parse(String systemId) |
protected void |
println(CharSequence content) |
void |
setContentHandler(ContentHandler handler) |
void |
setDTDHandler(DTDHandler handler) |
void |
setEntityResolver(EntityResolver resolver) |
void |
setErrorHandler(ErrorHandler handler) |
void |
setFeature(String name,
boolean value) |
void |
setProperty(String name,
Object value) |
protected void |
startDocument() |
protected void |
startElement(String localName) |
protected void |
startElement(String localName,
Attributes attributes) |
protected void |
startElement(String prefix,
String localName) |
protected void |
startElement(String prefix,
String localName,
Attributes attributes) |
protected void |
startPrefixMapping(String prefix,
String uri) |
protected static void generate(XmlGenerator generator, Writer writer) throws TransformerException
TransformerExceptionprotected static void generate(XmlGenerator generator, OutputStream stream) throws TransformerException
TransformerExceptionprotected static Document generate(XmlGenerator generator) throws TransformerException
TransformerExceptionpublic boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getFeature in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
setFeature in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getProperty in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
setProperty in interface XMLReaderSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void setEntityResolver(EntityResolver resolver)
setEntityResolver in interface XMLReaderpublic EntityResolver getEntityResolver()
getEntityResolver in interface XMLReaderpublic void setDTDHandler(DTDHandler handler)
setDTDHandler in interface XMLReaderpublic DTDHandler getDTDHandler()
getDTDHandler in interface XMLReaderpublic void setContentHandler(ContentHandler handler)
setContentHandler in interface XMLReaderpublic ContentHandler getContentHandler()
getContentHandler in interface XMLReaderpublic void setErrorHandler(ErrorHandler handler)
setErrorHandler in interface XMLReaderpublic ErrorHandler getErrorHandler()
getErrorHandler in interface XMLReaderpublic void parse(InputSource input) throws IOException, SAXException
parse in interface XMLReaderIOExceptionSAXExceptionpublic void parse(String systemId) throws IOException, SAXException
parse in interface XMLReaderIOExceptionSAXExceptionprotected abstract void generate()
throws SAXException
SAXExceptionprotected final XmlGenerator.AttributesBuilder attribute(String name, String value)
protected final XmlGenerator.AttributesBuilder attribute(String prefix, String name, String value)
protected final void startDocument()
throws SAXException
SAXExceptionprotected final void endDocument()
throws SAXException
SAXExceptionprotected final void startPrefixMapping(String prefix, String uri) throws SAXException
SAXExceptionprotected final void endPrefixMapping(String prefix) throws SAXException
SAXExceptionprotected final void startElement(String localName) throws SAXException
SAXExceptionprotected final void startElement(String localName, Attributes attributes) throws SAXException
SAXExceptionprotected final void startElement(String prefix, String localName) throws SAXException
SAXExceptionprotected final void comment(CharSequence content) throws SAXException
SAXExceptionprotected final void startElement(String prefix, String localName, Attributes attributes) throws SAXException
SAXExceptionprotected final void endElement(String localName) throws SAXException
SAXExceptionprotected final void endElement(String prefix, String localName) throws SAXException
SAXExceptionprotected final void endElementSameLine(String prefix, String localName) throws SAXException
SAXExceptionprotected final void println(CharSequence content) throws SAXException
SAXExceptionprotected final void characters(CharSequence content) throws SAXException
SAXExceptionprotected final void characters(char[] ch,
int start,
int length)
throws SAXException
SAXExceptionCopyright © 2019. All rights reserved.