All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.codehaus.stax2.util.StreamWriter2Delegate Maven / Gradle / Ivy

There is a newer version: 1.5.7
Show newest version
package org.codehaus.stax2.util;

import java.math.BigDecimal;
import java.math.BigInteger;

import javax.xml.namespace.QName;
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.XMLStreamWriter;

import org.codehaus.stax2.XMLStreamLocation2;
import org.codehaus.stax2.XMLStreamReader2;
import org.codehaus.stax2.XMLStreamWriter2;
import org.codehaus.stax2.typed.Base64Variant;
import org.codehaus.stax2.validation.ValidationProblemHandler;
import org.codehaus.stax2.validation.XMLValidationSchema;
import org.codehaus.stax2.validation.XMLValidator;

public class StreamWriter2Delegate
    extends StreamWriterDelegate
    implements XMLStreamWriter2
{
    protected XMLStreamWriter2 mDelegate2;

    /*
    //////////////////////////////////////////////
    // Life-cycle
    //////////////////////////////////////////////
     */

    public StreamWriter2Delegate(XMLStreamWriter2 parent)
    {
        super(parent);
    }
    // @Override
    public void setParent(XMLStreamWriter w)
    {
        super.setParent(w);
        mDelegate2 = (XMLStreamWriter2) w;
    }

    /*
    //////////////////////////////////////////////
    // XMLStreamWriter2 implementation
    //////////////////////////////////////////////
     */

    public void closeCompletely() throws XMLStreamException
    {
        mDelegate2.closeCompletely();
    }

    public void copyEventFromReader(XMLStreamReader2 r, boolean preserveEventData)
        throws XMLStreamException
    {
        mDelegate2.copyEventFromReader(r, preserveEventData);
    }

    public String getEncoding() {
        return mDelegate2.getEncoding();
    }

    public XMLStreamLocation2 getLocation() {
        return mDelegate2.getLocation();
    }

    public boolean isPropertySupported(String name) {
        return mDelegate2.isPropertySupported(name);
    }

    public boolean setProperty(String name, Object value) {
        return mDelegate2.setProperty(name, value);
    }

    public void writeCData(char[] text, int start, int len)
        throws XMLStreamException {
        mDelegate2.writeCData(text, start, len);
    }

    public void writeDTD(String rootName, String systemId, String publicId,
                         String internalSubset) throws XMLStreamException {
        mDelegate2.writeDTD(rootName, systemId, publicId, internalSubset);
    }

    public void writeFullEndElement() throws XMLStreamException {
        mDelegate2.writeFullEndElement();
    }

    public void writeRaw(String text) throws XMLStreamException {
        mDelegate2.writeRaw(text);
    }

    public void writeRaw(String text, int offset, int length)
        throws XMLStreamException
    {
        mDelegate2.writeRaw(text, offset, length);
    }

    public void writeRaw(char[] text, int offset, int length)
        throws XMLStreamException {
        mDelegate2.writeRaw(text, offset, length);
    }

    public void writeSpace(String text) throws XMLStreamException {
        mDelegate2.writeSpace( text);
    }

    public void writeSpace(char[] text, int offset, int length)
        throws XMLStreamException
    {
        mDelegate2.writeSpace(text, offset, length);
    }

    public void writeStartDocument(String version, String encoding,
                                   boolean standAlone) throws XMLStreamException {
        mDelegate2.writeStartDocument(version,  encoding, standAlone);
    }

    public void writeBinary(byte[] value, int from, int length)
        throws XMLStreamException
    {
        mDelegate2.writeBinary(value, from, length);
    }

    public void writeBinary(Base64Variant v, byte[] value, int from, int length)
        throws XMLStreamException
    {
        mDelegate2.writeBinary(v, value, from, length);
    }

    public void writeBinaryAttribute(String prefix, String namespaceURI,
                                     String localName, byte[] value) throws XMLStreamException {
        mDelegate2.writeBinaryAttribute(prefix,  namespaceURI, localName, value);
    }

    public void writeBinaryAttribute(Base64Variant v, String prefix, String namespaceURI,
                                     String localName, byte[] value) throws XMLStreamException {
        mDelegate2.writeBinaryAttribute(v, prefix,  namespaceURI, localName, value);
    }

    public void writeBoolean(boolean value) throws XMLStreamException {
        mDelegate2.writeBoolean(value);
    }

    public void writeBooleanAttribute(String prefix, String namespaceURI,
                                      String localName, boolean value) throws XMLStreamException {
        mDelegate2.writeBooleanAttribute(prefix,  namespaceURI, localName, value);
    }

    public void writeDecimal(BigDecimal value) throws XMLStreamException {
        mDelegate2.writeDecimal(value);
    }

    public void writeDecimalAttribute(String prefix, String namespaceURI,
                                      String localName, BigDecimal value) throws XMLStreamException {
        mDelegate2.writeDecimalAttribute(prefix,  namespaceURI, localName, value);
    }

    public void writeDouble(double value) throws XMLStreamException {
        mDelegate2.writeDouble(value);
    }

    public void writeDoubleArray(double[] value, int from, int length)
        throws XMLStreamException {
        mDelegate2.writeDoubleArray(value, from, length);
    }

    public void writeDoubleArrayAttribute(String prefix, String namespaceURI,
                                          String localName, double[] value) throws XMLStreamException {
        mDelegate2.writeDoubleArrayAttribute(prefix,  namespaceURI, localName, value);
    }

    public void writeDoubleAttribute(String prefix, String namespaceURI,
                                     String localName, double value) throws XMLStreamException {
        mDelegate2.writeDoubleAttribute(prefix,  namespaceURI, localName, value);
    }

    public void writeFloat(float value) throws XMLStreamException {
        mDelegate2.writeFloat(value);
    }

    public void writeFloatArray(float[] value, int from, int length)
        throws XMLStreamException
    {
        mDelegate2.writeFloatArray(value, from, length);
    }

    public void writeFloatArrayAttribute(String prefix, String namespaceURI,
                                         String localName, float[] value) throws XMLStreamException {
        mDelegate2.writeFloatArrayAttribute(prefix, namespaceURI, localName, value);
    }

    public void writeFloatAttribute(String prefix, String namespaceURI,
                                    String localName, float value) throws XMLStreamException {
        mDelegate2.writeFloatAttribute( prefix,  namespaceURI, localName, value);
    }

    public void writeInt(int value) throws XMLStreamException {
        mDelegate2.writeInt(value);
    }

    public void writeIntArray(int[] value, int from, int length)
        throws XMLStreamException {
        mDelegate2.writeIntArray(value, from, length);
    }

    public void writeIntArrayAttribute(String prefix, String namespaceURI,
                                       String localName, int[] value) throws XMLStreamException {
        mDelegate2.writeIntArrayAttribute( prefix,  namespaceURI, localName, value);
    }

    public void writeIntAttribute(String prefix, String namespaceURI,
                                  String localName, int value) throws XMLStreamException {
        mDelegate2.writeIntAttribute( prefix,  namespaceURI, localName,  value);
    }

    public void writeInteger(BigInteger value) throws XMLStreamException {
        mDelegate2.writeInteger(value);
    }

    public void writeIntegerAttribute(String prefix, String namespaceURI,
                                      String localName, BigInteger value) throws XMLStreamException {
        mDelegate2.writeIntegerAttribute( prefix,  namespaceURI, localName, value);
    }

    public void writeLong(long value) throws XMLStreamException {
        mDelegate2.writeLong(value);
    }

    public void writeLongArray(long[] value, int from, int length)
        throws XMLStreamException {
        mDelegate2.writeLongArray(value, from, length);
    }

    public void writeLongArrayAttribute(String prefix, String namespaceURI,
                                        String localName, long[] value) throws XMLStreamException {
        mDelegate2.writeLongArrayAttribute( prefix,  namespaceURI, localName, value);
    }

    public void writeLongAttribute(String prefix, String namespaceURI,
                                   String localName, long value) throws XMLStreamException {
        mDelegate2.writeLongAttribute(prefix, namespaceURI, localName, value);
    }

    public void writeQName(QName value) throws XMLStreamException {
        mDelegate2.writeQName(value);
    }

    public void writeQNameAttribute(String prefix,  String namespaceURI, String localName, QName value)
        throws XMLStreamException
    {
        mDelegate2.writeQNameAttribute(prefix, namespaceURI, localName, value);
    }

    public ValidationProblemHandler setValidationProblemHandler(ValidationProblemHandler h) {
        return mDelegate2.setValidationProblemHandler(h);
    }

    public XMLValidator stopValidatingAgainst(XMLValidationSchema schema)
        throws XMLStreamException
    {
        return mDelegate2.stopValidatingAgainst(schema);
    }

    public XMLValidator stopValidatingAgainst(XMLValidator validator)
        throws XMLStreamException
    {
        return mDelegate2.stopValidatingAgainst(validator);
    }

    public XMLValidator validateAgainst(XMLValidationSchema schema)
        throws XMLStreamException
    {
        return mDelegate2.validateAgainst(schema);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy