org.alfresco.repo.transfer
Class XMLWriter
java.lang.Object
org.alfresco.repo.transfer.XMLWriter
public class XMLWriter
- extends java.lang.Object
A simple class whose primary purpose is to wrap the fairly unfriendly interface presented by
the dom4j XMLWriter with one that is simpler to use.
Constructor Summary |
XMLWriter(java.io.OutputStream outputStream,
boolean prettyPrint,
java.lang.String encoding)
|
Method Summary |
void |
addAttribute(org.xml.sax.helpers.AttributesImpl attrs,
org.alfresco.service.namespace.QName name,
int value)
|
void |
addAttribute(org.xml.sax.helpers.AttributesImpl attrs,
org.alfresco.service.namespace.QName name,
java.lang.String value)
|
void |
close()
|
void |
endDocument()
|
void |
endElement(org.alfresco.service.namespace.QName name)
|
void |
endPrefixMapping(java.lang.String prefix)
|
void |
startDocument()
|
void |
startElement(org.alfresco.service.namespace.QName name)
|
void |
startElement(org.alfresco.service.namespace.QName name,
org.xml.sax.Attributes attrs)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLWriter
public XMLWriter(java.io.OutputStream outputStream,
boolean prettyPrint,
java.lang.String encoding)
throws java.io.UnsupportedEncodingException
- Throws:
java.io.UnsupportedEncodingException
startDocument
public void startDocument()
startElement
public void startElement(org.alfresco.service.namespace.QName name)
startElement
public void startElement(org.alfresco.service.namespace.QName name,
org.xml.sax.Attributes attrs)
endElement
public void endElement(org.alfresco.service.namespace.QName name)
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
endPrefixMapping
public void endPrefixMapping(java.lang.String prefix)
endDocument
public void endDocument()
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
addAttribute
public void addAttribute(org.xml.sax.helpers.AttributesImpl attrs,
org.alfresco.service.namespace.QName name,
java.lang.String value)
addAttribute
public void addAttribute(org.xml.sax.helpers.AttributesImpl attrs,
org.alfresco.service.namespace.QName name,
int value)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.