org.jboss.wsf.spi.util
Class StAXUtils
java.lang.Object
org.jboss.wsf.spi.util.StAXUtils
public class StAXUtils
- extends Object
StAX utils
- Since:
- 27-Nov-2010
- Author:
- alessio.soldano@jboss.com
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StAXUtils
public StAXUtils()
createXMLInputFactory
public static XMLInputFactory createXMLInputFactory(boolean nsAware)
- Return a new factory so that the caller can set sticky parameters.
- Parameters:
nsAware -
- Returns:
createXMLStreamReader
public static XMLStreamReader createXMLStreamReader(InputStream in)
match
public static boolean match(XMLStreamReader reader,
QName name)
match
public static boolean match(XMLStreamReader reader,
String namespace,
String localName)
elementAsString
public static String elementAsString(XMLStreamReader reader)
throws XMLStreamException
- Throws:
XMLStreamException
elementAsQName
public static QName elementAsQName(XMLStreamReader reader)
throws XMLStreamException
- Throws:
XMLStreamException
elementAsBoolean
public static boolean elementAsBoolean(XMLStreamReader reader)
throws XMLStreamException
- Throws:
XMLStreamException
elementAsInt
public static int elementAsInt(XMLStreamReader reader)
throws XMLStreamException
- Throws:
XMLStreamException
attributeAsQName
public static QName attributeAsQName(XMLStreamReader reader,
String namespace,
String localName)
throws XMLStreamException
- Throws:
XMLStreamException
attributeAsQName
public static QName attributeAsQName(XMLStreamReader reader,
String namespace,
String localName,
String targetNS)
throws XMLStreamException
- Throws:
XMLStreamException
nextElement
public static int nextElement(XMLStreamReader reader)
Copyright © 2012 JBoss, by Red Hat. All Rights Reserved.