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 TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) Handles CData characters.voidWrites a End Of Line marker to the output.voidendElement(String namespaceURI, String localName, String qName) Closes the xml element.voidendPrefixMapping(String prefix) Does nothing.voidflush()Flushes written bytes.voidignorableWhitespace(char[] ch, int start, int length) Does nothing.voidprocessingInstruction(String target, String data) Does nothing.voidsetDocumentLocator(Locator locator) Does nothing.voidskippedEntity(String name) Does nothing.voidStarts xml document.voidstartElement(String namespaceURI, String localName, String qName, Attributes atts) Starts an xml element.voidstartPrefixMapping(String prefix, String uri) Does nothing.Methods 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
-
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:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException Starts an xml element.- Specified by:
startElementin interfaceContentHandler- Parameters:
namespaceURI-localName-qName-atts-- Throws:
SAXException
-
characters
Handles CData characters.- Specified by:
charactersin interfaceContentHandler- Parameters:
ch-start-length-- Throws:
SAXException
-
endElement
Closes the xml element.- Specified by:
endElementin interfaceContentHandler- Parameters:
namespaceURI-localName-qName-- Throws:
SAXException
-
endDocument
Writes a End Of Line marker to the output.- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
Does nothing.- Specified by:
ignorableWhitespacein interfaceContentHandler- Parameters:
ch-start-length-- Throws:
SAXException
-
endPrefixMapping
Does nothing.- Specified by:
endPrefixMappingin interfaceContentHandler- Parameters:
prefix-- Throws:
SAXException
-
skippedEntity
Does nothing.- Specified by:
skippedEntityin interfaceContentHandler- Parameters:
name-- Throws:
SAXException
-
setDocumentLocator
Does nothing.- Specified by:
setDocumentLocatorin interfaceContentHandler- Parameters:
locator-
-
processingInstruction
Does nothing.- Specified by:
processingInstructionin interfaceContentHandler- Parameters:
target-data-- Throws:
SAXException
-
startPrefixMapping
Does nothing.- Specified by:
startPrefixMappingin interfaceContentHandler- Parameters:
prefix-uri-- Throws:
SAXException
-