Package org.tmatesoft.svn.core.wc.xml
Class SVNXMLSerializer
java.lang.Object
org.tmatesoft.svn.core.wc.xml.SVNXMLSerializer
- All Implemented Interfaces:
ContentHandler
This implementation of ContentHandler can write XML contents to
a specified output stream or writer.
- Since:
- 1.2
- Version:
- 1.3
- Author:
- TMate Software Ltd.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a serializer to write XML contents to the specified output stream.SVNXMLSerializer
(Writer writer) Creates a serializer to write XML contents to the specified writer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) Handles CData characters.void
Writes a End Of Line marker to the output.void
endElement
(String namespaceURI, String localName, String qName) Closes the xml element.void
endPrefixMapping
(String prefix) Does nothing.void
flush()
Flushes written bytes.void
ignorableWhitespace
(char[] ch, int start, int length) Does nothing.void
processingInstruction
(String target, String data) Does nothing.void
setDocumentLocator
(Locator locator) Does nothing.void
skippedEntity
(String name) Does nothing.void
Starts xml document.void
startElement
(String namespaceURI, String localName, String qName, Attributes atts) Starts an xml element.void
startPrefixMapping
(String prefix, String uri) Does nothing.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Constructor Details
-
SVNXMLSerializer
Creates a serializer to write XML contents to the specified output stream.- Parameters:
os
- an output stream to write contents to
-
SVNXMLSerializer
Creates a serializer to write XML contents to the specified writer.- Parameters:
writer
- a writer to write contents to
-
-
Method Details
-
flush
Flushes written bytes.- Throws:
IOException
-
startDocument
Starts xml document.- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException Starts an xml element.- Specified by:
startElement
in interfaceContentHandler
- Parameters:
namespaceURI
-localName
-qName
-atts
-- Throws:
SAXException
-
characters
Handles CData characters.- Specified by:
characters
in interfaceContentHandler
- Parameters:
ch
-start
-length
-- Throws:
SAXException
-
endElement
Closes the xml element.- Specified by:
endElement
in interfaceContentHandler
- Parameters:
namespaceURI
-localName
-qName
-- Throws:
SAXException
-
endDocument
Writes a End Of Line marker to the output.- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
-
ignorableWhitespace
Does nothing.- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Parameters:
ch
-start
-length
-- Throws:
SAXException
-
endPrefixMapping
Does nothing.- Specified by:
endPrefixMapping
in interfaceContentHandler
- Parameters:
prefix
-- Throws:
SAXException
-
skippedEntity
Does nothing.- Specified by:
skippedEntity
in interfaceContentHandler
- Parameters:
name
-- Throws:
SAXException
-
setDocumentLocator
Does nothing.- Specified by:
setDocumentLocator
in interfaceContentHandler
- Parameters:
locator
-
-
processingInstruction
Does nothing.- Specified by:
processingInstruction
in interfaceContentHandler
- Parameters:
target
-data
-- Throws:
SAXException
-
startPrefixMapping
Does nothing.- Specified by:
startPrefixMapping
in interfaceContentHandler
- Parameters:
prefix
-uri
-- Throws:
SAXException
-