SVNKit Home

## org.tmatesoft.svn.core.wc.xml
Class SVNXMLSerializer

    java.lang.Object
      org.tmatesoft.svn.core.wc.xml.SVNXMLSerializer

All 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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### 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 Detail

### flush

    public void flush()
               throws IOException

  Flushes written bytes.

  Throws:
    `IOException`

### startDocument

    public void startDocument()
                       throws SAXException

  Specified by:
    `startDocument` in interface `ContentHandler`
  Throws:
    `SAXException`

### startElement

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

  Specified by:
    `startElement` in interface `ContentHandler`
  Throws:
    `SAXException`

### characters

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

  Specified by:
    `characters` in interface `ContentHandler`
  Throws:
    `SAXException`

### endElement

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

  Specified by:
    `endElement` in interface `ContentHandler`
  Throws:
    `SAXException`

### endDocument

    public void endDocument()
                     throws SAXException

  Writes a End Of Line marker to the output.

  Specified by:
    `endDocument` in interface `ContentHandler`
  Throws:
    `SAXException`

### ignorableWhitespace

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

  Does nothing.

  Specified by:
    `ignorableWhitespace` in interface `ContentHandler`
  Parameters:
    `ch` -
    `start` -
    `length` -
  Throws:
    `SAXException`

### endPrefixMapping

    public void endPrefixMapping(String prefix)
                          throws SAXException

  Does nothing.

  Specified by:
    `endPrefixMapping` in interface `ContentHandler`
  Parameters:
    `prefix` -
  Throws:
    `SAXException`

### skippedEntity

    public void skippedEntity(String name)
                       throws SAXException

  Does nothing.

  Specified by:
    `skippedEntity` in interface `ContentHandler`
  Parameters:
    `name` -
  Throws:
    `SAXException`

### setDocumentLocator

    public void setDocumentLocator(Locator locator)

  Does nothing.

  Specified by:
    `setDocumentLocator` in interface `ContentHandler`
  Parameters:
    `locator` -

### processingInstruction

    public void processingInstruction(String target,
                                      String data)
                               throws SAXException

  Does nothing.

  Specified by:
    `processingInstruction` in interface `ContentHandler`
  Parameters:
    `target` -
    `data` -
  Throws:
    `SAXException`

### startPrefixMapping

    public void startPrefixMapping(String prefix,
                                   String uri)
                            throws SAXException

  Does nothing.

  Specified by:
    `startPrefixMapping` in interface `ContentHandler`
  Parameters:
    `prefix` -
    `uri` -
  Throws:
    `SAXException`

SVNKit Home

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