- All Implemented Interfaces:
AutoCloseable,ContentHandler
-
Field Summary
Fields inherited from class org.xmlobjects.stream.XMLOutput
headerComment, indent, prefixMapping, schemaLocations, writeXMLDeclaration -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidendElement(String uri, String localName, String qName) voidflush()String[]booleanprotected SAXOutputHandlerself()voidstartElement(String uri, String localName, String qName, Attributes atts) voidstartPrefixMapping(String prefix, String namespaceURI) Methods inherited from class org.xmlobjects.stream.XMLOutput
getNamespaceURI, getPrefix, getSchemaLocation, withDefaultNamespace, withHeaderComment, withIndent, withPrefix, withSchemaLocation, writeXMLDeclarationMethods inherited from class org.xmlobjects.util.xml.SAXFilter
characters, endDocument, endPrefixMapping, getParent, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocumentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
SAXOutputHandler
-
-
Method Details
-
getIndent
- Overrides:
getIndentin classXMLOutput<SAXOutputHandler>
-
isWriteXMLDeclaration
public boolean isWriteXMLDeclaration()- Overrides:
isWriteXMLDeclarationin classXMLOutput<SAXOutputHandler>
-
getHeaderComment
- Overrides:
getHeaderCommentin classXMLOutput<SAXOutputHandler>
-
flush
- Specified by:
flushin classXMLOutput<SAXOutputHandler>- Throws:
Exception
-
close
- Throws:
Exception
-
startElement
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classSAXFilter- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classSAXFilter- Throws:
SAXException
-
endElement
- Specified by:
endElementin interfaceContentHandler- Overrides:
endElementin classSAXFilter- Throws:
SAXException
-
self
- Specified by:
selfin classXMLOutput<SAXOutputHandler>
-