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
IOExceptionpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerSAXExceptionpublic void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
startElement in interface ContentHandlernamespaceURI - localName - qName - atts - SAXExceptionpublic void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlerch - start - length - SAXExceptionpublic void endElement(String namespaceURI, String localName, String qName) throws SAXException
endElement in interface ContentHandlernamespaceURI - localName - qName - SAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerSAXExceptionpublic void ignorableWhitespace(char[] ch,
int start,
int length)
throws SAXException
ignorableWhitespace in interface ContentHandlerch - start - length - SAXExceptionpublic void endPrefixMapping(String prefix) throws SAXException
endPrefixMapping in interface ContentHandlerprefix - SAXExceptionpublic void skippedEntity(String name) throws SAXException
skippedEntity in interface ContentHandlername - SAXExceptionpublic void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlerlocator - public void processingInstruction(String target, String data) throws SAXException
processingInstruction in interface ContentHandlertarget - data - SAXExceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
startPrefixMapping in interface ContentHandlerprefix - uri - SAXExceptionCopyright © 2025. All rights reserved.