public class XMLWriteController extends BaseXMLTagInterpreterController
PROP_LEXICAL_HANDLER
Constructor and Description |
---|
XMLWriteController(org.xml.sax.XMLReader xmlReader,
java.io.Writer writer)
Initialize the new instance with the given XML reader and writer.
|
Modifier and Type | Method and Description |
---|---|
protected XMLTagInterpreterFactory |
createTagInterpreterFactory()
Returns a new instance of a tag interpreter factory.
|
void |
endDocument()
Receive notification of the end of a document.
|
int |
getIndentIncrement()
Returns the number of spaces that are additionally prepended per hierarchy level
on each line.
|
protected XMLTagInterpreter |
getInterpreterFor(java.lang.String tagName)
Returns an instance of a tag interpreter class corresponding to the
specified tag name.
|
protected MarkupWriter |
getWriter() |
protected void |
handleFinalResult(java.lang.Object result)
This method is called, when the end tag of the document was reached.
|
void |
setIndentIncrement(int increment)
Sets the number of spaces that are additionally prepended per hierarchy level
on each line.
|
protected void |
setWriter(MarkupWriter newValue) |
void |
useDoubleQuotes()
Configures the writer to write double quotes ( " ) around attribute values.
|
void |
useSingleQuotes()
Configures the writer to write single quotes ( ' ) around attribute values.
|
getInterpreterFactory, getInterpreterStack, getLexicalHandlerHolder, getReader, getXmlReader, initLexicalHandler, isLexicalHandlerSupported, isStackEmpty, peekStack, popFromStack, putOnStack, restartInterpreter, returnControl, setInterpreterFactory, setInterpreterStack, setLexicalHandlerHolder, setLexicalHandlerSupported, setReader, setXmlReader, startElement, startElement, startInterpreter, trace
characters, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public XMLWriteController(org.xml.sax.XMLReader xmlReader, java.io.Writer writer)
public void useSingleQuotes()
public void useDoubleQuotes()
public void endDocument()
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
public int getIndentIncrement()
public void setIndentIncrement(int increment)
protected void handleFinalResult(java.lang.Object result)
handleFinalResult
in class BaseXMLTagInterpreterController
result
- The result of the all embracing document tag.protected XMLTagInterpreterFactory createTagInterpreterFactory()
createTagInterpreterFactory
in class BaseXMLTagInterpreterController
protected XMLTagInterpreter getInterpreterFor(java.lang.String tagName) throws org.xml.sax.SAXException
getInterpreterFor
in class BaseXMLTagInterpreterController
tagName
- The name of the tag, the interpreter is looked up for.org.xml.sax.SAXException
protected MarkupWriter getWriter()
protected void setWriter(MarkupWriter newValue)