
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 void
close()
void
flush()
NamespaceContext
getNamespaceContext()
String
getPrefix(String theUri)
Object
getProperty(String theName)
void
setDefaultNamespace(String theUri)
void
setNamespaceContext(NamespaceContext theContext)
void
setPrefix(String thePrefix, String theUri)
void
writeAttribute(String theLocalName, String theValue)
void
writeAttribute(String theNamespaceURI, String theLocalName, String theValue)
void
writeAttribute(String thePrefix, String theNamespaceURI, String theLocalName, String theValue)
void
writeCData(String theData)
void
writeCharacters(char[] theText, int theStart, int theLen)
void
writeCharacters(String theText)
void
writeComment(String theData)
void
writeDefaultNamespace(String theNamespaceURI)
void
writeDTD(String theDtd)
void
writeEmptyElement(String theLocalName)
void
writeEmptyElement(String theNamespaceURI, String theLocalName)
void
writeEmptyElement(String thePrefix, String theLocalName, String theNamespaceURI)
void
writeEndDocument()
void
writeEndElement()
void
writeEntityRef(String theName)
void
writeNamespace(String thePrefix, String theNamespaceURI)
void
writeProcessingInstruction(String theTarget)
void
writeProcessingInstruction(String theTarget, String theData)
void
writeStartDocument()
void
writeStartDocument(String theVersion)
void
writeStartDocument(String theEncoding, String theVersion)
void
writeStartElement(String theLocalName)
void
writeStartElement(String theNamespaceURI, String theLocalName)
void
writeStartElement(String thePrefix, String theLocalName, String theNamespaceURI)
-
-
-
Constructor Detail
-
PrettyPrintWriterWrapper
public PrettyPrintWriterWrapper(XMLStreamWriter target)
-
-
Method Detail
-
close
public void close() throws XMLStreamException
- Specified by:
close
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
flush
public void flush() throws XMLStreamException
- Specified by:
flush
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
getNamespaceContext
public NamespaceContext getNamespaceContext()
- Specified by:
getNamespaceContext
in interfaceXMLStreamWriter
-
getPrefix
public String getPrefix(String theUri) throws XMLStreamException
- Specified by:
getPrefix
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
getProperty
public Object getProperty(String theName) throws IllegalArgumentException
- Specified by:
getProperty
in interfaceXMLStreamWriter
- Throws:
IllegalArgumentException
-
setDefaultNamespace
public void setDefaultNamespace(String theUri) throws XMLStreamException
- Specified by:
setDefaultNamespace
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
setNamespaceContext
public void setNamespaceContext(NamespaceContext theContext) throws XMLStreamException
- Specified by:
setNamespaceContext
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
setPrefix
public void setPrefix(String thePrefix, String theUri) throws XMLStreamException
- Specified by:
setPrefix
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String theLocalName, String theValue) throws XMLStreamException
- Specified by:
writeAttribute
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String theNamespaceURI, String theLocalName, String theValue) throws XMLStreamException
- Specified by:
writeAttribute
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String thePrefix, String theNamespaceURI, String theLocalName, String theValue) throws XMLStreamException
- Specified by:
writeAttribute
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeCData
public void writeCData(String theData) throws XMLStreamException
- Specified by:
writeCData
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeCharacters
public void writeCharacters(char[] theText, int theStart, int theLen) throws XMLStreamException
- Specified by:
writeCharacters
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeCharacters
public void writeCharacters(String theText) throws XMLStreamException
- Specified by:
writeCharacters
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeComment
public void writeComment(String theData) throws XMLStreamException
- Specified by:
writeComment
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeDefaultNamespace
public void writeDefaultNamespace(String theNamespaceURI) throws XMLStreamException
- Specified by:
writeDefaultNamespace
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeDTD
public void writeDTD(String theDtd) throws XMLStreamException
- Specified by:
writeDTD
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String theLocalName) throws XMLStreamException
- Specified by:
writeEmptyElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String theNamespaceURI, String theLocalName) throws XMLStreamException
- Specified by:
writeEmptyElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String thePrefix, String theLocalName, String theNamespaceURI) throws XMLStreamException
- Specified by:
writeEmptyElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeEndDocument
public void writeEndDocument() throws XMLStreamException
- Specified by:
writeEndDocument
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeEndElement
public void writeEndElement() throws XMLStreamException
- Specified by:
writeEndElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeEntityRef
public void writeEntityRef(String theName) throws XMLStreamException
- Specified by:
writeEntityRef
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeNamespace
public void writeNamespace(String thePrefix, String theNamespaceURI) throws XMLStreamException
- Specified by:
writeNamespace
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeProcessingInstruction
public void writeProcessingInstruction(String theTarget) throws XMLStreamException
- Specified by:
writeProcessingInstruction
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeProcessingInstruction
public void writeProcessingInstruction(String theTarget, String theData) throws XMLStreamException
- Specified by:
writeProcessingInstruction
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeStartDocument
public void writeStartDocument() throws XMLStreamException
- Specified by:
writeStartDocument
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeStartDocument
public void writeStartDocument(String theVersion) throws XMLStreamException
- Specified by:
writeStartDocument
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeStartDocument
public void writeStartDocument(String theEncoding, String theVersion) throws XMLStreamException
- Specified by:
writeStartDocument
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String theLocalName) throws XMLStreamException
- Specified by:
writeStartElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String theNamespaceURI, String theLocalName) throws XMLStreamException
- Specified by:
writeStartElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String thePrefix, String theLocalName, String theNamespaceURI) throws XMLStreamException
- Specified by:
writeStartElement
in interfaceXMLStreamWriter
- Throws:
XMLStreamException
-
-