Class WrappedXMLStreamWriter2
- java.lang.Object
-
- org.openprovenance.prov.core.xml.serialization.stax.WrappedXMLStreamWriter2
-
- All Implemented Interfaces:
XMLStreamWriter,org.codehaus.stax2.typed.TypedXMLStreamWriter,org.codehaus.stax2.validation.Validatable,org.codehaus.stax2.XMLStreamWriter2
- Direct Known Subclasses:
NamespaceXMLStreamWriter2
public class WrappedXMLStreamWriter2 extends Object implements org.codehaus.stax2.XMLStreamWriter2
-
-
Field Summary
Fields Modifier and Type Field Description protected org.codehaus.stax2.XMLStreamWriter2delegate
-
Constructor Summary
Constructors Constructor Description WrappedXMLStreamWriter2(org.codehaus.stax2.XMLStreamWriter2 delegate)
-
Method Summary
Modifier and Type Method Description voidclose()voidcloseCompletely()voidcopyEventFromReader(org.codehaus.stax2.XMLStreamReader2 xmlStreamReader2, boolean b)voidflush()StringgetEncoding()org.codehaus.stax2.XMLStreamLocation2getLocation()NamespaceContextgetNamespaceContext()StringgetPrefix(String uri)ObjectgetProperty(String name)booleanisPropertySupported(String s)voidsetDefaultNamespace(String uri)voidsetNamespaceContext(NamespaceContext context)voidsetPrefix(String prefix, String uri)booleansetProperty(String s, Object o)org.codehaus.stax2.validation.ValidationProblemHandlersetValidationProblemHandler(org.codehaus.stax2.validation.ValidationProblemHandler validationProblemHandler)org.codehaus.stax2.validation.XMLValidatorstopValidatingAgainst(org.codehaus.stax2.validation.XMLValidationSchema xmlValidationSchema)org.codehaus.stax2.validation.XMLValidatorstopValidatingAgainst(org.codehaus.stax2.validation.XMLValidator xmlValidator)org.codehaus.stax2.validation.XMLValidatorvalidateAgainst(org.codehaus.stax2.validation.XMLValidationSchema xmlValidationSchema)voidwriteAttribute(String localName, String value)voidwriteAttribute(String namespaceURI, String localName, String value)voidwriteAttribute(String prefix, String namespaceURI, String localName, String value)voidwriteBinary(byte[] bytes, int i, int i1)voidwriteBinary(org.codehaus.stax2.typed.Base64Variant base64Variant, byte[] bytes, int i, int i1)voidwriteBinaryAttribute(String s, String s1, String s2, byte[] bytes)voidwriteBinaryAttribute(org.codehaus.stax2.typed.Base64Variant base64Variant, String s, String s1, String s2, byte[] bytes)voidwriteBoolean(boolean b)voidwriteBooleanAttribute(String s, String s1, String s2, boolean b)voidwriteCData(char[] chars, int i, int i1)voidwriteCData(String data)voidwriteCharacters(char[] text, int start, int len)voidwriteCharacters(String text)voidwriteComment(String data)voidwriteDecimal(BigDecimal bigDecimal)voidwriteDecimalAttribute(String s, String s1, String s2, BigDecimal bigDecimal)voidwriteDefaultNamespace(String namespaceURI)voidwriteDouble(double v)voidwriteDoubleArray(double[] doubles, int i, int i1)voidwriteDoubleArrayAttribute(String s, String s1, String s2, double[] doubles)voidwriteDoubleAttribute(String s, String s1, String s2, double v)voidwriteDTD(String dtd)voidwriteDTD(String s, String s1, String s2, String s3)voidwriteEmptyElement(String localName)voidwriteEmptyElement(String namespaceURI, String localName)voidwriteEmptyElement(String prefix, String localName, String namespaceURI)voidwriteEndDocument()voidwriteEndElement()voidwriteEntityRef(String name)voidwriteFloat(float v)voidwriteFloatArray(float[] floats, int i, int i1)voidwriteFloatArrayAttribute(String s, String s1, String s2, float[] floats)voidwriteFloatAttribute(String s, String s1, String s2, float v)voidwriteFullEndElement()voidwriteInt(int i)voidwriteIntArray(int[] ints, int i, int i1)voidwriteIntArrayAttribute(String s, String s1, String s2, int[] ints)voidwriteIntAttribute(String s, String s1, String s2, int i)voidwriteInteger(BigInteger bigInteger)voidwriteIntegerAttribute(String s, String s1, String s2, BigInteger bigInteger)voidwriteLong(long l)voidwriteLongArray(long[] longs, int i, int i1)voidwriteLongArrayAttribute(String s, String s1, String s2, long[] longs)voidwriteLongAttribute(String s, String s1, String s2, long l)voidwriteNamespace(String prefix, String namespaceURI)voidwriteProcessingInstruction(String target)voidwriteProcessingInstruction(String target, String data)voidwriteQName(QName qName)voidwriteQNameAttribute(String s, String s1, String s2, QName qName)voidwriteRaw(char[] chars, int i, int i1)voidwriteRaw(String s)voidwriteRaw(String s, int i, int i1)voidwriteSpace(char[] chars, int i, int i1)voidwriteSpace(String s)voidwriteStartDocument()voidwriteStartDocument(String version)voidwriteStartDocument(String encoding, String version)voidwriteStartDocument(String s, String s1, boolean b)voidwriteStartElement(String localName)voidwriteStartElement(String namespaceURI, String localName)voidwriteStartElement(String prefix, String localName, String namespaceURI)
-
-
-
Method Detail
-
validateAgainst
public org.codehaus.stax2.validation.XMLValidator validateAgainst(org.codehaus.stax2.validation.XMLValidationSchema xmlValidationSchema) throws XMLStreamException- Specified by:
validateAgainstin interfaceorg.codehaus.stax2.validation.Validatable- Throws:
XMLStreamException
-
stopValidatingAgainst
public org.codehaus.stax2.validation.XMLValidator stopValidatingAgainst(org.codehaus.stax2.validation.XMLValidationSchema xmlValidationSchema) throws XMLStreamException- Specified by:
stopValidatingAgainstin interfaceorg.codehaus.stax2.validation.Validatable- Throws:
XMLStreamException
-
stopValidatingAgainst
public org.codehaus.stax2.validation.XMLValidator stopValidatingAgainst(org.codehaus.stax2.validation.XMLValidator xmlValidator) throws XMLStreamException- Specified by:
stopValidatingAgainstin interfaceorg.codehaus.stax2.validation.Validatable- Throws:
XMLStreamException
-
setValidationProblemHandler
public org.codehaus.stax2.validation.ValidationProblemHandler setValidationProblemHandler(org.codehaus.stax2.validation.ValidationProblemHandler validationProblemHandler)
- Specified by:
setValidationProblemHandlerin interfaceorg.codehaus.stax2.validation.Validatable
-
writeBoolean
public void writeBoolean(boolean b) throws XMLStreamException- Specified by:
writeBooleanin interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeInt
public void writeInt(int i) throws XMLStreamException- Specified by:
writeIntin interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeLong
public void writeLong(long l) throws XMLStreamException- Specified by:
writeLongin interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeFloat
public void writeFloat(float v) throws XMLStreamException- Specified by:
writeFloatin interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeDouble
public void writeDouble(double v) throws XMLStreamException- Specified by:
writeDoublein interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeInteger
public void writeInteger(BigInteger bigInteger) throws XMLStreamException
- Specified by:
writeIntegerin interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeDecimal
public void writeDecimal(BigDecimal bigDecimal) throws XMLStreamException
- Specified by:
writeDecimalin interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeQName
public void writeQName(QName qName) throws XMLStreamException
- Specified by:
writeQNamein interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeBinary
public void writeBinary(byte[] bytes, int i, int i1) throws XMLStreamException- Specified by:
writeBinaryin interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeBinary
public void writeBinary(org.codehaus.stax2.typed.Base64Variant base64Variant, byte[] bytes, int i, int i1) throws XMLStreamException- Specified by:
writeBinaryin interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeIntArray
public void writeIntArray(int[] ints, int i, int i1) throws XMLStreamException- Specified by:
writeIntArrayin interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeLongArray
public void writeLongArray(long[] longs, int i, int i1) throws XMLStreamException- Specified by:
writeLongArrayin interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeFloatArray
public void writeFloatArray(float[] floats, int i, int i1) throws XMLStreamException- Specified by:
writeFloatArrayin interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeDoubleArray
public void writeDoubleArray(double[] doubles, int i, int i1) throws XMLStreamException- Specified by:
writeDoubleArrayin interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeBooleanAttribute
public void writeBooleanAttribute(String s, String s1, String s2, boolean b) throws XMLStreamException
- Specified by:
writeBooleanAttributein interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeIntAttribute
public void writeIntAttribute(String s, String s1, String s2, int i) throws XMLStreamException
- Specified by:
writeIntAttributein interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeLongAttribute
public void writeLongAttribute(String s, String s1, String s2, long l) throws XMLStreamException
- Specified by:
writeLongAttributein interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeFloatAttribute
public void writeFloatAttribute(String s, String s1, String s2, float v) throws XMLStreamException
- Specified by:
writeFloatAttributein interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeDoubleAttribute
public void writeDoubleAttribute(String s, String s1, String s2, double v) throws XMLStreamException
- Specified by:
writeDoubleAttributein interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeIntegerAttribute
public void writeIntegerAttribute(String s, String s1, String s2, BigInteger bigInteger) throws XMLStreamException
- Specified by:
writeIntegerAttributein interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeDecimalAttribute
public void writeDecimalAttribute(String s, String s1, String s2, BigDecimal bigDecimal) throws XMLStreamException
- Specified by:
writeDecimalAttributein interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeQNameAttribute
public void writeQNameAttribute(String s, String s1, String s2, QName qName) throws XMLStreamException
- Specified by:
writeQNameAttributein interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeBinaryAttribute
public void writeBinaryAttribute(String s, String s1, String s2, byte[] bytes) throws XMLStreamException
- Specified by:
writeBinaryAttributein interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeBinaryAttribute
public void writeBinaryAttribute(org.codehaus.stax2.typed.Base64Variant base64Variant, String s, String s1, String s2, byte[] bytes) throws XMLStreamException- Specified by:
writeBinaryAttributein interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeIntArrayAttribute
public void writeIntArrayAttribute(String s, String s1, String s2, int[] ints) throws XMLStreamException
- Specified by:
writeIntArrayAttributein interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeLongArrayAttribute
public void writeLongArrayAttribute(String s, String s1, String s2, long[] longs) throws XMLStreamException
- Specified by:
writeLongArrayAttributein interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeFloatArrayAttribute
public void writeFloatArrayAttribute(String s, String s1, String s2, float[] floats) throws XMLStreamException
- Specified by:
writeFloatArrayAttributein interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
writeDoubleArrayAttribute
public void writeDoubleArrayAttribute(String s, String s1, String s2, double[] doubles) throws XMLStreamException
- Specified by:
writeDoubleArrayAttributein interfaceorg.codehaus.stax2.typed.TypedXMLStreamWriter- Throws:
XMLStreamException
-
isPropertySupported
public boolean isPropertySupported(String s)
- Specified by:
isPropertySupportedin interfaceorg.codehaus.stax2.XMLStreamWriter2
-
setProperty
public boolean setProperty(String s, Object o)
- Specified by:
setPropertyin interfaceorg.codehaus.stax2.XMLStreamWriter2
-
getLocation
public org.codehaus.stax2.XMLStreamLocation2 getLocation()
- Specified by:
getLocationin interfaceorg.codehaus.stax2.XMLStreamWriter2
-
getEncoding
public String getEncoding()
- Specified by:
getEncodingin interfaceorg.codehaus.stax2.XMLStreamWriter2
-
writeCData
public void writeCData(char[] chars, int i, int i1) throws XMLStreamException- Specified by:
writeCDatain interfaceorg.codehaus.stax2.XMLStreamWriter2- Throws:
XMLStreamException
-
writeDTD
public void writeDTD(String s, String s1, String s2, String s3) throws XMLStreamException
- Specified by:
writeDTDin interfaceorg.codehaus.stax2.XMLStreamWriter2- Throws:
XMLStreamException
-
writeFullEndElement
public void writeFullEndElement() throws XMLStreamException- Specified by:
writeFullEndElementin interfaceorg.codehaus.stax2.XMLStreamWriter2- Throws:
XMLStreamException
-
writeStartDocument
public void writeStartDocument(String s, String s1, boolean b) throws XMLStreamException
- Specified by:
writeStartDocumentin interfaceorg.codehaus.stax2.XMLStreamWriter2- Throws:
XMLStreamException
-
writeSpace
public void writeSpace(String s) throws XMLStreamException
- Specified by:
writeSpacein interfaceorg.codehaus.stax2.XMLStreamWriter2- Throws:
XMLStreamException
-
writeSpace
public void writeSpace(char[] chars, int i, int i1) throws XMLStreamException- Specified by:
writeSpacein interfaceorg.codehaus.stax2.XMLStreamWriter2- Throws:
XMLStreamException
-
writeRaw
public void writeRaw(String s) throws XMLStreamException
- Specified by:
writeRawin interfaceorg.codehaus.stax2.XMLStreamWriter2- Throws:
XMLStreamException
-
writeRaw
public void writeRaw(String s, int i, int i1) throws XMLStreamException
- Specified by:
writeRawin interfaceorg.codehaus.stax2.XMLStreamWriter2- Throws:
XMLStreamException
-
writeRaw
public void writeRaw(char[] chars, int i, int i1) throws XMLStreamException- Specified by:
writeRawin interfaceorg.codehaus.stax2.XMLStreamWriter2- Throws:
XMLStreamException
-
copyEventFromReader
public void copyEventFromReader(org.codehaus.stax2.XMLStreamReader2 xmlStreamReader2, boolean b) throws XMLStreamException- Specified by:
copyEventFromReaderin interfaceorg.codehaus.stax2.XMLStreamWriter2- Throws:
XMLStreamException
-
closeCompletely
public void closeCompletely() throws XMLStreamException- Specified by:
closeCompletelyin interfaceorg.codehaus.stax2.XMLStreamWriter2- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String localName) throws XMLStreamException
- Specified by:
writeStartElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String namespaceURI, String localName) throws XMLStreamException
- Specified by:
writeStartElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeStartElement
public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
- Specified by:
writeStartElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String namespaceURI, String localName) throws XMLStreamException
- Specified by:
writeEmptyElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String prefix, String localName, String namespaceURI) throws XMLStreamException
- Specified by:
writeEmptyElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEmptyElement
public void writeEmptyElement(String localName) throws XMLStreamException
- Specified by:
writeEmptyElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEndElement
public void writeEndElement() throws XMLStreamException- Specified by:
writeEndElementin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEndDocument
public void writeEndDocument() throws XMLStreamException- Specified by:
writeEndDocumentin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
close
public void close() throws XMLStreamException- Specified by:
closein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
flush
public void flush() throws XMLStreamException- Specified by:
flushin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String localName, String value) throws XMLStreamException
- Specified by:
writeAttributein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String prefix, String namespaceURI, String localName, String value) throws XMLStreamException
- Specified by:
writeAttributein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeAttribute
public void writeAttribute(String namespaceURI, String localName, String value) throws XMLStreamException
- Specified by:
writeAttributein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeNamespace
public void writeNamespace(String prefix, String namespaceURI) throws XMLStreamException
- Specified by:
writeNamespacein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeDefaultNamespace
public void writeDefaultNamespace(String namespaceURI) throws XMLStreamException
- Specified by:
writeDefaultNamespacein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeComment
public void writeComment(String data) throws XMLStreamException
- Specified by:
writeCommentin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeProcessingInstruction
public void writeProcessingInstruction(String target) throws XMLStreamException
- Specified by:
writeProcessingInstructionin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeProcessingInstruction
public void writeProcessingInstruction(String target, String data) throws XMLStreamException
- Specified by:
writeProcessingInstructionin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeCData
public void writeCData(String data) throws XMLStreamException
- Specified by:
writeCDatain interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeDTD
public void writeDTD(String dtd) throws XMLStreamException
- Specified by:
writeDTDin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeEntityRef
public void writeEntityRef(String name) throws XMLStreamException
- Specified by:
writeEntityRefin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeStartDocument
public void writeStartDocument() throws XMLStreamException- Specified by:
writeStartDocumentin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeStartDocument
public void writeStartDocument(String version) throws XMLStreamException
- Specified by:
writeStartDocumentin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeStartDocument
public void writeStartDocument(String encoding, String version) throws XMLStreamException
- Specified by:
writeStartDocumentin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeCharacters
public void writeCharacters(String text) throws XMLStreamException
- Specified by:
writeCharactersin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
writeCharacters
public void writeCharacters(char[] text, int start, int len) throws XMLStreamException- Specified by:
writeCharactersin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
getPrefix
public String getPrefix(String uri) throws XMLStreamException
- Specified by:
getPrefixin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
setPrefix
public void setPrefix(String prefix, String uri) throws XMLStreamException
- Specified by:
setPrefixin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
setDefaultNamespace
public void setDefaultNamespace(String uri) throws XMLStreamException
- Specified by:
setDefaultNamespacein interfaceXMLStreamWriter- Throws:
XMLStreamException
-
setNamespaceContext
public void setNamespaceContext(NamespaceContext context) throws XMLStreamException
- Specified by:
setNamespaceContextin interfaceXMLStreamWriter- Throws:
XMLStreamException
-
getNamespaceContext
public NamespaceContext getNamespaceContext()
- Specified by:
getNamespaceContextin interfaceXMLStreamWriter
-
getProperty
public Object getProperty(String name) throws IllegalArgumentException
- Specified by:
getPropertyin interfaceXMLStreamWriter- Throws:
IllegalArgumentException
-
-