Package ca.uhn.fhir.util
Class PrettyPrintWriterWrapper
- java.lang.Object
-
- ca.uhn.fhir.util.PrettyPrintWriterWrapper
-
- All Implemented Interfaces:
XMLStreamWriter
public class PrettyPrintWriterWrapper extends Object implements XMLStreamWriter
-
-
Constructor Summary
Constructors Constructor Description PrettyPrintWriterWrapper(XMLStreamWriter target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()NamespaceContextgetNamespaceContext()StringgetPrefix(String theUri)ObjectgetProperty(String theName)voidsetDefaultNamespace(String theUri)voidsetNamespaceContext(NamespaceContext theContext)voidsetPrefix(String thePrefix, String theUri)voidwriteAttribute(String theLocalName, String theValue)voidwriteAttribute(String theNamespaceURI, String theLocalName, String theValue)voidwriteAttribute(String thePrefix, String theNamespaceURI, String theLocalName, String theValue)voidwriteCData(String theData)voidwriteCharacters(char[] theText, int theStart, int theLen)voidwriteCharacters(String theText)voidwriteComment(String theData)voidwriteDefaultNamespace(String theNamespaceURI)voidwriteDTD(String theDtd)voidwriteEmptyElement(String theLocalName)voidwriteEmptyElement(String theNamespaceURI, String theLocalName)voidwriteEmptyElement(String thePrefix, String theLocalName, String theNamespaceURI)voidwriteEndDocument()voidwriteEndElement()voidwriteEntityRef(String theName)voidwriteNamespace(String thePrefix, String theNamespaceURI)voidwriteProcessingInstruction(String theTarget)voidwriteProcessingInstruction(String theTarget, String theData)voidwriteStartDocument()voidwriteStartDocument(String theVersion)voidwriteStartDocument(String theEncoding, String theVersion)voidwriteStartElement(String theLocalName)voidwriteStartElement(String theNamespaceURI, String theLocalName)voidwriteStartElement(String thePrefix, String theLocalName, String theNamespaceURI)
-
-
-
Constructor Detail
-
PrettyPrintWriterWrapper
public PrettyPrintWriterWrapper(XMLStreamWriter target)
-
-
Method Detail
-
close
public void close() throws XMLStreamException
- Specified by:
closein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
flush
public void flush() throws XMLStreamException
- Specified by:
flushin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
getNamespaceContext
public NamespaceContext getNamespaceContext()
- Specified by:
getNamespaceContextin interfaceXMLStreamWriter
-
getPrefix
public String getPrefix(String theUri) throws XMLStreamException
- Specified by:
getPrefixin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
getProperty
public Object getProperty(String theName) throws IllegalArgumentException
- Specified by:
getPropertyin interfaceXMLStreamWriter- Throws:
IllegalArgumentException
-
setDefaultNamespace
public void setDefaultNamespace(String theUri) throws XMLStreamException
- Specified by:
setDefaultNamespacein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
setNamespaceContext
public void setNamespaceContext(NamespaceContext theContext) throws XMLStreamException
- Specified by:
setNamespaceContextin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
setPrefix
public void setPrefix(String thePrefix, String theUri) throws XMLStreamException
- Specified by:
setPrefixin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String theLocalName, String theValue) throws XMLStreamException
- Specified by:
writeAttributein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String theNamespaceURI, String theLocalName, String theValue) throws XMLStreamException
- Specified by:
writeAttributein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String thePrefix, String theNamespaceURI, String theLocalName, String theValue) throws XMLStreamException
- Specified by:
writeAttributein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeCData
public void writeCData(String theData) throws XMLStreamException
- Specified by:
writeCDatain interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeCharacters
public void writeCharacters(char[] theText, int theStart, int theLen) throws XMLStreamException
- Specified by:
writeCharactersin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeCharacters
public void writeCharacters(String theText) throws XMLStreamException
- Specified by:
writeCharactersin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeComment
public void writeComment(String theData) throws XMLStreamException
- Specified by:
writeCommentin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeDefaultNamespace
public void writeDefaultNamespace(String theNamespaceURI) throws XMLStreamException
- Specified by:
writeDefaultNamespacein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeDTD
public void writeDTD(String theDtd) throws XMLStreamException
- Specified by:
writeDTDin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String theLocalName) throws XMLStreamException
- Specified by:
writeEmptyElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String theNamespaceURI, String theLocalName) throws XMLStreamException
- Specified by:
writeEmptyElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String thePrefix, String theLocalName, String theNamespaceURI) throws XMLStreamException
- Specified by:
writeEmptyElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEndDocument
public void writeEndDocument() throws XMLStreamException
- Specified by:
writeEndDocumentin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEndElement
public void writeEndElement() throws XMLStreamException
- Specified by:
writeEndElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEntityRef
public void writeEntityRef(String theName) throws XMLStreamException
- Specified by:
writeEntityRefin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeNamespace
public void writeNamespace(String thePrefix, String theNamespaceURI) throws XMLStreamException
- Specified by:
writeNamespacein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeProcessingInstruction
public void writeProcessingInstruction(String theTarget) throws XMLStreamException
- Specified by:
writeProcessingInstructionin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeProcessingInstruction
public void writeProcessingInstruction(String theTarget, String theData) throws XMLStreamException
- Specified by:
writeProcessingInstructionin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeStartDocument
public void writeStartDocument() throws XMLStreamException
- Specified by:
writeStartDocumentin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeStartDocument
public void writeStartDocument(String theVersion) throws XMLStreamException
- Specified by:
writeStartDocumentin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeStartDocument
public void writeStartDocument(String theEncoding, String theVersion) throws XMLStreamException
- Specified by:
writeStartDocumentin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String theLocalName) throws XMLStreamException
- Specified by:
writeStartElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String theNamespaceURI, String theLocalName) throws XMLStreamException
- Specified by:
writeStartElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String thePrefix, String theLocalName, String theNamespaceURI) throws XMLStreamException
- Specified by:
writeStartElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
-