org.tmatesoft.svn.core.wc.xml

Class SVNXMLSerializer

Implemented Interfaces:
ContentHandler

public class SVNXMLSerializer
extends Object
implements ContentHandler

This implementation of ContentHandler can write XML contents to a specified output stream or writer.
Version:
1.1.1
Author:
TMate Software Ltd.

Constructor Summary

SVNXMLSerializer(OutputStream os)
Creates 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

void
characters(char[] ch, int start, int length)
void
endDocument()
Writes a End Of Line marker to the output.
void
endElement(String namespaceURI, String localName, String qName)
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
startDocument()
void
startElement(String namespaceURI, String localName, String qName, Attributes atts)
void
startPrefixMapping(String prefix, String uri)
Does nothing.

Constructor Details

SVNXMLSerializer

public SVNXMLSerializer(OutputStream os)
Creates a serializer to write XML contents to the specified output stream.
Parameters:
os - an output stream to write contents to

SVNXMLSerializer

public SVNXMLSerializer(Writer writer)
Creates a serializer to write XML contents to the specified writer.
Parameters:
writer - a writer to write contents to

Method Details

characters

public void characters(char[] ch,
                       int start,
                       int length)
            throws SAXException

endDocument

public void endDocument()
            throws SAXException
Writes a End Of Line marker to the output.

endElement

public void endElement(String namespaceURI,
                       String localName,
                       String qName)
            throws SAXException

endPrefixMapping

public void endPrefixMapping(String prefix)
            throws SAXException
Does nothing.
Parameters:
prefix -

flush

public void flush()
            throws IOException
Flushes written bytes.

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
            throws SAXException
Does nothing.
Parameters:
ch -
start -
length -

processingInstruction

public void processingInstruction(String target,
                                  String data)
            throws SAXException
Does nothing.
Parameters:
target -
data -

setDocumentLocator

public void setDocumentLocator(Locator locator)
Does nothing.
Parameters:
locator -

skippedEntity

public void skippedEntity(String name)
            throws SAXException
Does nothing.
Parameters:
name -

startDocument

public void startDocument()
            throws SAXException

startElement

public void startElement(String namespaceURI,
                         String localName,
                         String qName,
                         Attributes atts)
            throws SAXException

startPrefixMapping

public void startPrefixMapping(String prefix,
                               String uri)
            throws SAXException
Does nothing.
Parameters:
prefix -
uri -

Copyright © 2004-2006 TMate Software Ltd. All Rights Reserved.