public class SVNXMLSerializer extends Object implements ContentHandler
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
void |
characters(char[] ch,
int start,
int length)
Handles CData characters.
|
void |
endDocument()
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 |
startDocument()
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.
|
public SVNXMLSerializer(OutputStream os)
os
- an output stream to write contents topublic SVNXMLSerializer(Writer writer)
writer
- a writer to write contents topublic void flush() throws IOException
IOException
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
SAXException
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement
in interface ContentHandler
namespaceURI
- localName
- qName
- atts
- SAXException
public void characters(char[] ch, int start, int length) throws SAXException
characters
in interface ContentHandler
ch
- start
- length
- SAXException
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement
in interface ContentHandler
namespaceURI
- localName
- qName
- SAXException
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ignorableWhitespace
in interface ContentHandler
ch
- start
- length
- SAXException
public void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping
in interface ContentHandler
prefix
- SAXException
public void skippedEntity(String name) throws SAXException
skippedEntity
in interface ContentHandler
name
- SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
locator
- public void processingInstruction(String target, String data) throws SAXException
processingInstruction
in interface ContentHandler
target
- data
- SAXException
public void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping
in interface ContentHandler
prefix
- uri
- SAXException
Copyright © 2019. All rights reserved.