{
public FinalArrayList(int initialCapacity) {
@@ -25,7 +26,7 @@ public FinalArrayList(int initialCapacity) {
public FinalArrayList() {
}
- public FinalArrayList(Collection collection) {
+ public FinalArrayList(Collection extends T> collection) {
super(collection);
}
}
diff --git a/src/main/java/org/jvnet/staxex/util/MtomStreamWriter.java b/src/main/java/org/jvnet/staxex/util/MtomStreamWriter.java
index 0952e40..d199e53 100644
--- a/src/main/java/org/jvnet/staxex/util/MtomStreamWriter.java
+++ b/src/main/java/org/jvnet/staxex/util/MtomStreamWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
diff --git a/src/main/java/org/jvnet/staxex/util/XMLStreamReaderToXMLStreamWriter.java b/src/main/java/org/jvnet/staxex/util/XMLStreamReaderToXMLStreamWriter.java
index c870e07..7c36a54 100644
--- a/src/main/java/org/jvnet/staxex/util/XMLStreamReaderToXMLStreamWriter.java
+++ b/src/main/java/org/jvnet/staxex/util/XMLStreamReaderToXMLStreamWriter.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2020 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -34,13 +34,13 @@
* @author Ryan Shoemaker
*/
public class XMLStreamReaderToXMLStreamWriter {
-
+
static public class Breakpoint {
protected XMLStreamReader reader;
protected XMLStreamWriter writer;
-
- public Breakpoint(XMLStreamReader r, XMLStreamWriter w) { reader = r; writer = w; }
-
+
+ public Breakpoint(XMLStreamReader r, XMLStreamWriter w) { reader = r; writer = w; }
+
public XMLStreamReader reader() { return reader; }
public XMLStreamWriter writer() { return writer; }
public boolean proceedBeforeStartElement() { return true; }
@@ -55,15 +55,20 @@ static public class Breakpoint {
private char[] buf;
boolean optimizeBase64Data = false;
-
+
AttachmentMarshaller mtomAttachmentMarshaller;
-
+
+ public XMLStreamReaderToXMLStreamWriter() {
+ super();
+ }
+
/**
* Reads one subtree and writes it out.
*
*
* The {@link XMLStreamWriter} never receives a start/end document event.
* Those need to be written separately by the caller.
+ * @throws javax.xml.stream.XMLStreamException
*/
public void bridge(XMLStreamReader in, XMLStreamWriter out) throws XMLStreamException {
bridge(in, out, null);
@@ -72,14 +77,14 @@ public void bridge(XMLStreamReader in, XMLStreamWriter out) throws XMLStreamExce
public void bridge(Breakpoint breakPoint) throws XMLStreamException {
bridge(breakPoint.reader(), breakPoint.writer(), breakPoint);
}
-
+
private void bridge(XMLStreamReader in, XMLStreamWriter out, Breakpoint breakPoint) throws XMLStreamException {
assert in!=null && out!=null;
this.in = in;
this.out = out;
optimizeBase64Data = (in instanceof XMLStreamReaderEx);
-
+
if (out instanceof XMLStreamWriterEx && out instanceof MtomStreamWriter) {
mtomAttachmentMarshaller = ((MtomStreamWriter) out).getAttachmentMarshaller();
}
@@ -150,13 +155,13 @@ protected void handlePI() throws XMLStreamException {
protected void handleCharacters() throws XMLStreamException {
-
+
CharSequence c = null;
-
+
if (optimizeBase64Data) {
c = ((XMLStreamReaderEx)in).getPCDATA();
}
-
+
if ((c != null) && (c instanceof Base64Data)) {
if (mtomAttachmentMarshaller != null) {
Base64Data b64d = (Base64Data) c;
@@ -211,6 +216,7 @@ protected void handleStartElement() throws XMLStreamException {
*
*
* Used from {@link #handleStartElement()}.
+ * @throws javax.xml.stream.XMLStreamException
*/
protected void handleAttribute(int i) throws XMLStreamException {
String nsUri = in.getAttributeNamespace(i);
@@ -261,7 +267,7 @@ private static String fixNull(String s) {
}
private int getEventType() throws XMLStreamException {
- int event = in.getEventType();
+ int event = in.getEventType();
// if the parser is at the start tag, proceed to the first element
//Note - need to do this every time because we could be using a composite reader
if(event == XMLStreamConstants.START_DOCUMENT) {
diff --git a/src/test/java/org/jvnet/staxex/util/ByteCodeVersionTest.java b/src/test/java/org/jvnet/staxex/util/ByteCodeVersionTest.java
deleted file mode 100644
index 8d605e5..0000000
--- a/src/test/java/org/jvnet/staxex/util/ByteCodeVersionTest.java
+++ /dev/null
@@ -1,55 +0,0 @@
-/*
- * Copyright (c) 2019 Oracle and/or its affiliates. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Distribution License v. 1.0, which is available at
- * http://www.eclipse.org/org/documents/edl-v10.php.
- *
- * SPDX-License-Identifier: BSD-3-Clause
- */
-
-package org.jvnet.staxex.util;
-
-import java.io.DataInputStream;
-import java.io.InputStream;
-import java.io.IOException;
-import org.junit.Assert;
-import org.junit.Test;
-
-/**
- *
- * @author lukas
- */
-public class ByteCodeVersionTest {
-
- public ByteCodeVersionTest() {
- }
-
- @Test
- public void testModuleInfoByteCodeVersion() {
- // module-info for JDK 9
- verifyClassFileFormat("/module-info.class", 0x35);
- }
-
- @Test
- public void testClassByteCodeVersion() {
- // class files for JDK 7
- verifyClassFileFormat("/org/jvnet/staxex/MtomEnabled.class", 0x34);
- }
-
- private static void verifyClassFileFormat(String resource, int expectedClassVersion) {
- try (InputStream in = ByteCodeVersionTest.class.getModule().getResourceAsStream(resource);
- DataInputStream data = new DataInputStream(in)) {
- if (0xCAFEBABE != data.readInt()) {
- Assert.fail("invalid header");
- }
- // minor
- int i = data.readUnsignedShort();
- // major
- i = data.readUnsignedShort();
- Assert.assertEquals("Class Files compiled for wrong java runtime version", expectedClassVersion, i);
- } catch (IOException ioe) {
- throw new RuntimeException(ioe);
- }
- }
-}
diff --git a/src/test/java/org/jvnet/staxex/util/XMLStreamReaderToXMLStreamWriterTest.java b/src/test/java/org/jvnet/staxex/util/XMLStreamReaderToXMLStreamWriterTest.java
index 2f4eacc..d4eda9b 100644
--- a/src/test/java/org/jvnet/staxex/util/XMLStreamReaderToXMLStreamWriterTest.java
+++ b/src/test/java/org/jvnet/staxex/util/XMLStreamReaderToXMLStreamWriterTest.java
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2021 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Distribution License v. 1.0, which is available at
@@ -7,7 +7,6 @@
*
* SPDX-License-Identifier: BSD-3-Clause
*/
-
package org.jvnet.staxex.util;
import java.io.StringReader;
@@ -25,368 +24,457 @@
import org.junit.Test;
public class XMLStreamReaderToXMLStreamWriterTest {
-
- @Test
- /** Tests that XMLStreamReaderToXMLStreamWriter.bridge does
- * not send null namespace prefixes to the XMLStreamWriter because
- * some writers used by us cannot handle the null prefix
- * @throws XMLStreamException
- */
- public void testNullNamespacePrefix() throws XMLStreamException {
- XMLInputFactory infact = XMLInputFactory.newInstance();
- String xmlString = "" +
- "" +
- "";
- XMLStreamReader in = new XMLStreamReaderNullPrefix(infact.createXMLStreamReader(new StringReader(xmlString)));
- StringWriter sw = new StringWriter();
- XMLStreamWriter out = new XMLStreamWriterNoNullPrefixes(XMLOutputFactory.newInstance().createXMLStreamWriter(sw));
- XMLStreamReaderToXMLStreamWriter readerToWriter = new XMLStreamReaderToXMLStreamWriter();
- readerToWriter.bridge(in, out);
- }
-
- //Define a delegating XMLStreamReader that always returns null for empty prefix
- //and a delegating XMLStreamWriter that chokes on null prefix
- private static class XMLStreamWriterNoNullPrefixes implements XMLStreamWriter {
- private XMLStreamWriter delegate;
-
- public XMLStreamWriterNoNullPrefixes(XMLStreamWriter delegate) {
- this.delegate = delegate;
- }
-
- public void close() throws XMLStreamException {
- delegate.close();
- }
-
- public void flush() throws XMLStreamException {
- delegate.flush();
- }
-
- public NamespaceContext getNamespaceContext() {
- return delegate.getNamespaceContext();
- }
-
- public String getPrefix(String arg0) throws XMLStreamException {
- return delegate.getPrefix(arg0);
- }
-
- public Object getProperty(String arg0) throws IllegalArgumentException {
- return delegate.getProperty(arg0);
- }
-
- public void setDefaultNamespace(String arg0) throws XMLStreamException {
- delegate.setDefaultNamespace(arg0);
- }
-
- public void setNamespaceContext(NamespaceContext arg0)
- throws XMLStreamException {
- delegate.setNamespaceContext(arg0);
- }
-
- public void setPrefix(String arg0, String arg1)
- throws XMLStreamException {
- delegate.setPrefix(arg0, arg1);
- }
-
- public void writeAttribute(String arg0, String arg1, String arg2,
- String arg3) throws XMLStreamException {
- delegate.writeAttribute(arg0, arg1, arg2, arg3);
- }
-
- public void writeAttribute(String arg0, String arg1, String arg2)
- throws XMLStreamException {
- delegate.writeAttribute(arg0, arg1, arg2);
- }
-
- public void writeAttribute(String arg0, String arg1)
- throws XMLStreamException {
- delegate.writeAttribute(arg0, arg1);
- }
-
- public void writeCData(String arg0) throws XMLStreamException {
- delegate.writeCData(arg0);
- }
-
- public void writeCharacters(char[] arg0, int arg1, int arg2)
- throws XMLStreamException {
- delegate.writeCharacters(arg0, arg1, arg2);
- }
-
- public void writeCharacters(String arg0) throws XMLStreamException {
- delegate.writeCharacters(arg0);
- }
-
- public void writeComment(String arg0) throws XMLStreamException {
- delegate.writeComment(arg0);
- }
-
- public void writeDTD(String arg0) throws XMLStreamException {
- delegate.writeDTD(arg0);
- }
-
- public void writeDefaultNamespace(String arg0)
- throws XMLStreamException {
- delegate.writeDefaultNamespace(arg0);
- }
-
- public void writeEmptyElement(String arg0, String arg1, String arg2)
- throws XMLStreamException {
- delegate.writeEmptyElement(arg0, arg1, arg2);
- }
-
- public void writeEmptyElement(String arg0, String arg1)
- throws XMLStreamException {
- delegate.writeEmptyElement(arg0, arg1);
- }
-
- public void writeEmptyElement(String arg0) throws XMLStreamException {
- delegate.writeEmptyElement(arg0);
- }
-
- public void writeEndDocument() throws XMLStreamException {
- delegate.writeEndDocument();
- }
-
- public void writeEndElement() throws XMLStreamException {
- delegate.writeEndElement();
- }
-
- public void writeEntityRef(String arg0) throws XMLStreamException {
- delegate.writeEntityRef(arg0);
- }
-
- public void writeNamespace(String prefix, String ns)
- throws XMLStreamException {
- if (prefix == null) throw new XMLStreamException("NS Prefix from XMLStreamReaderToXMLStreamWriter cannot be null!");
- delegate.writeNamespace(prefix, ns);
- }
-
- public void writeProcessingInstruction(String arg0, String arg1)
- throws XMLStreamException {
- delegate.writeProcessingInstruction(arg0, arg1);
- }
-
- public void writeProcessingInstruction(String arg0)
- throws XMLStreamException {
- delegate.writeProcessingInstruction(arg0);
- }
-
- public void writeStartDocument() throws XMLStreamException {
- delegate.writeStartDocument();
- }
-
- public void writeStartDocument(String arg0, String arg1)
- throws XMLStreamException {
- delegate.writeStartDocument(arg0, arg1);
- }
-
- public void writeStartDocument(String arg0) throws XMLStreamException {
- delegate.writeStartDocument(arg0);
- }
-
- public void writeStartElement(String arg0, String arg1, String arg2)
- throws XMLStreamException {
- delegate.writeStartElement(arg0, arg1, arg2);
- }
-
- public void writeStartElement(String arg0, String arg1)
- throws XMLStreamException {
- delegate.writeStartElement(arg0, arg1);
- }
-
- public void writeStartElement(String arg0) throws XMLStreamException {
- delegate.writeStartElement(arg0);
- }
- }
- private static class XMLStreamReaderNullPrefix implements XMLStreamReader {
- private XMLStreamReader delegate;
-
- public XMLStreamReaderNullPrefix(XMLStreamReader reader) {
- delegate = reader;
- }
-
- public void close() throws XMLStreamException {
- delegate.close();
- }
-
- public int getAttributeCount() {
- return delegate.getAttributeCount();
- }
-
- public String getAttributeLocalName(int arg0) {
- return delegate.getAttributeLocalName(arg0);
- }
-
- public QName getAttributeName(int arg0) {
- return delegate.getAttributeName(arg0);
- }
-
- public String getAttributeNamespace(int arg0) {
- return delegate.getAttributeNamespace(arg0);
- }
-
- public String getAttributePrefix(int arg0) {
- return delegate.getAttributePrefix(arg0);
- }
-
- public String getAttributeType(int arg0) {
- return delegate.getAttributeType(arg0);
- }
-
- public String getAttributeValue(int arg0) {
- return delegate.getAttributeValue(arg0);
- }
-
- public String getAttributeValue(String arg0, String arg1) {
- return delegate.getAttributeValue(arg0, arg1);
- }
-
- public String getCharacterEncodingScheme() {
- return delegate.getCharacterEncodingScheme();
- }
-
- public String getElementText() throws XMLStreamException {
- return delegate.getElementText();
- }
-
- public String getEncoding() {
- return delegate.getEncoding();
- }
-
- public int getEventType() {
- return delegate.getEventType();
- }
-
- public String getLocalName() {
- return delegate.getLocalName();
- }
-
- public Location getLocation() {
- return delegate.getLocation();
- }
-
- public QName getName() {
- return delegate.getName();
- }
-
- public NamespaceContext getNamespaceContext() {
- return delegate.getNamespaceContext();
- }
-
- public int getNamespaceCount() {
- return delegate.getNamespaceCount();
- }
-
- public String getNamespacePrefix(int arg0) {
- String prefix = delegate.getNamespacePrefix(arg0);
- if ("".equals(prefix)) return null;
- return prefix;
- }
-
- public String getNamespaceURI() {
- return delegate.getNamespaceURI();
- }
-
- public String getNamespaceURI(int arg0) {
- return delegate.getNamespaceURI(arg0);
- }
-
- public String getNamespaceURI(String arg0) {
- return delegate.getNamespaceURI(arg0);
- }
-
- public String getPIData() {
- return delegate.getPIData();
- }
-
- public String getPITarget() {
- return delegate.getPITarget();
- }
-
- public String getPrefix() {
- return delegate.getPrefix();
- }
-
- public Object getProperty(String arg0) throws IllegalArgumentException {
- return delegate.getProperty(arg0);
- }
-
- public String getText() {
- return delegate.getText();
- }
-
- public char[] getTextCharacters() {
- return delegate.getTextCharacters();
- }
-
- public int getTextCharacters(int arg0, char[] arg1, int arg2, int arg3)
- throws XMLStreamException {
- return delegate.getTextCharacters(arg0, arg1, arg2, arg3);
- }
-
- public int getTextLength() {
- return delegate.getTextLength();
- }
-
- public int getTextStart() {
- return delegate.getTextStart();
- }
-
- public String getVersion() {
- return delegate.getVersion();
- }
-
- public boolean hasName() {
- return delegate.hasName();
- }
-
- public boolean hasNext() throws XMLStreamException {
- return delegate.hasNext();
- }
-
- public boolean hasText() {
- return delegate.hasText();
- }
-
- public boolean isAttributeSpecified(int arg0) {
- return delegate.isAttributeSpecified(arg0);
- }
-
- public boolean isCharacters() {
- return delegate.isCharacters();
- }
-
- public boolean isEndElement() {
- return delegate.isEndElement();
- }
-
- public boolean isStandalone() {
- return delegate.isStandalone();
- }
-
- public boolean isStartElement() {
- return delegate.isStartElement();
- }
-
- public boolean isWhiteSpace() {
- return delegate.isWhiteSpace();
- }
-
- public int next() throws XMLStreamException {
- return delegate.next();
- }
-
- public int nextTag() throws XMLStreamException {
- return delegate.nextTag();
- }
-
- public void require(int arg0, String arg1, String arg2)
- throws XMLStreamException {
- delegate.require(arg0, arg1, arg2);
- }
-
- public boolean standaloneSet() {
- return delegate.standaloneSet();
- }
- }
-
+
+ public XMLStreamReaderToXMLStreamWriterTest() {
+ }
+
+ /**
+ * Tests that XMLStreamReaderToXMLStreamWriter.bridge does not send null
+ * namespace prefixes to the XMLStreamWriter because some writers used by us
+ * cannot handle the null prefix
+ *
+ * @throws XMLStreamException
+ */
+ @Test
+ public void testNullNamespacePrefix() throws XMLStreamException {
+ XMLInputFactory infact = XMLInputFactory.newInstance();
+ String xmlString = ""
+ + ""
+ + "";
+ XMLStreamReader in = new XMLStreamReaderNullPrefix(infact.createXMLStreamReader(new StringReader(xmlString)));
+ StringWriter sw = new StringWriter();
+ XMLStreamWriter out = new XMLStreamWriterNoNullPrefixes(XMLOutputFactory.newInstance().createXMLStreamWriter(sw));
+ XMLStreamReaderToXMLStreamWriter readerToWriter = new XMLStreamReaderToXMLStreamWriter();
+ readerToWriter.bridge(in, out);
+ }
+
+ //Define a delegating XMLStreamReader that always returns null for empty prefix
+ //and a delegating XMLStreamWriter that chokes on null prefix
+ private static class XMLStreamWriterNoNullPrefixes implements XMLStreamWriter {
+
+ private XMLStreamWriter delegate;
+
+ public XMLStreamWriterNoNullPrefixes(XMLStreamWriter delegate) {
+ this.delegate = delegate;
+ }
+
+ @Override
+ public void close() throws XMLStreamException {
+ delegate.close();
+ }
+
+ @Override
+ public void flush() throws XMLStreamException {
+ delegate.flush();
+ }
+
+ @Override
+ public NamespaceContext getNamespaceContext() {
+ return delegate.getNamespaceContext();
+ }
+
+ @Override
+ public String getPrefix(String arg0) throws XMLStreamException {
+ return delegate.getPrefix(arg0);
+ }
+
+ @Override
+ public Object getProperty(String arg0) throws IllegalArgumentException {
+ return delegate.getProperty(arg0);
+ }
+
+ @Override
+ public void setDefaultNamespace(String arg0) throws XMLStreamException {
+ delegate.setDefaultNamespace(arg0);
+ }
+
+ @Override
+ public void setNamespaceContext(NamespaceContext arg0)
+ throws XMLStreamException {
+ delegate.setNamespaceContext(arg0);
+ }
+
+ @Override
+ public void setPrefix(String arg0, String arg1)
+ throws XMLStreamException {
+ delegate.setPrefix(arg0, arg1);
+ }
+
+ @Override
+ public void writeAttribute(String arg0, String arg1, String arg2,
+ String arg3) throws XMLStreamException {
+ delegate.writeAttribute(arg0, arg1, arg2, arg3);
+ }
+
+ @Override
+ public void writeAttribute(String arg0, String arg1, String arg2)
+ throws XMLStreamException {
+ delegate.writeAttribute(arg0, arg1, arg2);
+ }
+
+ @Override
+ public void writeAttribute(String arg0, String arg1)
+ throws XMLStreamException {
+ delegate.writeAttribute(arg0, arg1);
+ }
+
+ @Override
+ public void writeCData(String arg0) throws XMLStreamException {
+ delegate.writeCData(arg0);
+ }
+
+ @Override
+ public void writeCharacters(char[] arg0, int arg1, int arg2)
+ throws XMLStreamException {
+ delegate.writeCharacters(arg0, arg1, arg2);
+ }
+
+ @Override
+ public void writeCharacters(String arg0) throws XMLStreamException {
+ delegate.writeCharacters(arg0);
+ }
+
+ @Override
+ public void writeComment(String arg0) throws XMLStreamException {
+ delegate.writeComment(arg0);
+ }
+
+ @Override
+ public void writeDTD(String arg0) throws XMLStreamException {
+ delegate.writeDTD(arg0);
+ }
+
+ @Override
+ public void writeDefaultNamespace(String arg0)
+ throws XMLStreamException {
+ delegate.writeDefaultNamespace(arg0);
+ }
+
+ @Override
+ public void writeEmptyElement(String arg0, String arg1, String arg2)
+ throws XMLStreamException {
+ delegate.writeEmptyElement(arg0, arg1, arg2);
+ }
+
+ @Override
+ public void writeEmptyElement(String arg0, String arg1)
+ throws XMLStreamException {
+ delegate.writeEmptyElement(arg0, arg1);
+ }
+
+ @Override
+ public void writeEmptyElement(String arg0) throws XMLStreamException {
+ delegate.writeEmptyElement(arg0);
+ }
+
+ @Override
+ public void writeEndDocument() throws XMLStreamException {
+ delegate.writeEndDocument();
+ }
+
+ @Override
+ public void writeEndElement() throws XMLStreamException {
+ delegate.writeEndElement();
+ }
+
+ @Override
+ public void writeEntityRef(String arg0) throws XMLStreamException {
+ delegate.writeEntityRef(arg0);
+ }
+
+ @Override
+ public void writeNamespace(String prefix, String ns)
+ throws XMLStreamException {
+ if (prefix == null) {
+ throw new XMLStreamException("NS Prefix from XMLStreamReaderToXMLStreamWriter cannot be null!");
+ }
+ delegate.writeNamespace(prefix, ns);
+ }
+
+ @Override
+ public void writeProcessingInstruction(String arg0, String arg1)
+ throws XMLStreamException {
+ delegate.writeProcessingInstruction(arg0, arg1);
+ }
+
+ @Override
+ public void writeProcessingInstruction(String arg0)
+ throws XMLStreamException {
+ delegate.writeProcessingInstruction(arg0);
+ }
+
+ @Override
+ public void writeStartDocument() throws XMLStreamException {
+ delegate.writeStartDocument();
+ }
+
+ @Override
+ public void writeStartDocument(String arg0, String arg1)
+ throws XMLStreamException {
+ delegate.writeStartDocument(arg0, arg1);
+ }
+
+ @Override
+ public void writeStartDocument(String arg0) throws XMLStreamException {
+ delegate.writeStartDocument(arg0);
+ }
+
+ @Override
+ public void writeStartElement(String arg0, String arg1, String arg2)
+ throws XMLStreamException {
+ delegate.writeStartElement(arg0, arg1, arg2);
+ }
+
+ @Override
+ public void writeStartElement(String arg0, String arg1)
+ throws XMLStreamException {
+ delegate.writeStartElement(arg0, arg1);
+ }
+
+ @Override
+ public void writeStartElement(String arg0) throws XMLStreamException {
+ delegate.writeStartElement(arg0);
+ }
+ }
+
+ private static class XMLStreamReaderNullPrefix implements XMLStreamReader {
+
+ private XMLStreamReader delegate;
+
+ public XMLStreamReaderNullPrefix(XMLStreamReader reader) {
+ delegate = reader;
+ }
+
+ @Override
+ public void close() throws XMLStreamException {
+ delegate.close();
+ }
+
+ @Override
+ public int getAttributeCount() {
+ return delegate.getAttributeCount();
+ }
+
+ @Override
+ public String getAttributeLocalName(int arg0) {
+ return delegate.getAttributeLocalName(arg0);
+ }
+
+ @Override
+ public QName getAttributeName(int arg0) {
+ return delegate.getAttributeName(arg0);
+ }
+
+ @Override
+ public String getAttributeNamespace(int arg0) {
+ return delegate.getAttributeNamespace(arg0);
+ }
+
+ @Override
+ public String getAttributePrefix(int arg0) {
+ return delegate.getAttributePrefix(arg0);
+ }
+
+ @Override
+ public String getAttributeType(int arg0) {
+ return delegate.getAttributeType(arg0);
+ }
+
+ @Override
+ public String getAttributeValue(int arg0) {
+ return delegate.getAttributeValue(arg0);
+ }
+
+ @Override
+ public String getAttributeValue(String arg0, String arg1) {
+ return delegate.getAttributeValue(arg0, arg1);
+ }
+
+ @Override
+ public String getCharacterEncodingScheme() {
+ return delegate.getCharacterEncodingScheme();
+ }
+
+ @Override
+ public String getElementText() throws XMLStreamException {
+ return delegate.getElementText();
+ }
+
+ @Override
+ public String getEncoding() {
+ return delegate.getEncoding();
+ }
+
+ @Override
+ public int getEventType() {
+ return delegate.getEventType();
+ }
+
+ @Override
+ public String getLocalName() {
+ return delegate.getLocalName();
+ }
+
+ @Override
+ public Location getLocation() {
+ return delegate.getLocation();
+ }
+
+ @Override
+ public QName getName() {
+ return delegate.getName();
+ }
+
+ @Override
+ public NamespaceContext getNamespaceContext() {
+ return delegate.getNamespaceContext();
+ }
+
+ @Override
+ public int getNamespaceCount() {
+ return delegate.getNamespaceCount();
+ }
+
+ @Override
+ public String getNamespacePrefix(int arg0) {
+ String prefix = delegate.getNamespacePrefix(arg0);
+ if ("".equals(prefix)) {
+ return null;
+ }
+ return prefix;
+ }
+
+ @Override
+ public String getNamespaceURI() {
+ return delegate.getNamespaceURI();
+ }
+
+ @Override
+ public String getNamespaceURI(int arg0) {
+ return delegate.getNamespaceURI(arg0);
+ }
+
+ @Override
+ public String getNamespaceURI(String arg0) {
+ return delegate.getNamespaceURI(arg0);
+ }
+
+ @Override
+ public String getPIData() {
+ return delegate.getPIData();
+ }
+
+ @Override
+ public String getPITarget() {
+ return delegate.getPITarget();
+ }
+
+ @Override
+ public String getPrefix() {
+ return delegate.getPrefix();
+ }
+
+ @Override
+ public Object getProperty(String arg0) throws IllegalArgumentException {
+ return delegate.getProperty(arg0);
+ }
+
+ @Override
+ public String getText() {
+ return delegate.getText();
+ }
+
+ @Override
+ public char[] getTextCharacters() {
+ return delegate.getTextCharacters();
+ }
+
+ @Override
+ public int getTextCharacters(int arg0, char[] arg1, int arg2, int arg3)
+ throws XMLStreamException {
+ return delegate.getTextCharacters(arg0, arg1, arg2, arg3);
+ }
+
+ @Override
+ public int getTextLength() {
+ return delegate.getTextLength();
+ }
+
+ @Override
+ public int getTextStart() {
+ return delegate.getTextStart();
+ }
+
+ @Override
+ public String getVersion() {
+ return delegate.getVersion();
+ }
+
+ @Override
+ public boolean hasName() {
+ return delegate.hasName();
+ }
+
+ @Override
+ public boolean hasNext() throws XMLStreamException {
+ return delegate.hasNext();
+ }
+
+ @Override
+ public boolean hasText() {
+ return delegate.hasText();
+ }
+
+ @Override
+ public boolean isAttributeSpecified(int arg0) {
+ return delegate.isAttributeSpecified(arg0);
+ }
+
+ @Override
+ public boolean isCharacters() {
+ return delegate.isCharacters();
+ }
+
+ @Override
+ public boolean isEndElement() {
+ return delegate.isEndElement();
+ }
+
+ @Override
+ public boolean isStandalone() {
+ return delegate.isStandalone();
+ }
+
+ @Override
+ public boolean isStartElement() {
+ return delegate.isStartElement();
+ }
+
+ @Override
+ public boolean isWhiteSpace() {
+ return delegate.isWhiteSpace();
+ }
+
+ @Override
+ public int next() throws XMLStreamException {
+ return delegate.next();
+ }
+
+ @Override
+ public int nextTag() throws XMLStreamException {
+ return delegate.nextTag();
+ }
+
+ @Override
+ public void require(int arg0, String arg1, String arg2)
+ throws XMLStreamException {
+ delegate.require(arg0, arg1, arg2);
+ }
+
+ @Override
+ public boolean standaloneSet() {
+ return delegate.standaloneSet();
+ }
+ }
+
}