|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.xfire.util.STAXUtils
public class STAXUtils
Common StAX utilities.
Constructor Summary | |
---|---|
STAXUtils()
|
Method Summary | |
---|---|
static void |
copy(XMLStreamReader reader,
XMLStreamWriter writer)
Copies the reader to the writer. |
static XMLStreamReader |
createXMLStreamReader(java.io.InputStream in,
java.lang.String encoding,
MessageContext ctx)
|
static XMLStreamReader |
createXMLStreamReader(java.io.Reader reader)
|
static XMLStreamReader |
createXMLStreamReader(java.io.Reader reader,
MessageContext context)
|
static XMLStreamWriter |
createXMLStreamWriter(java.io.OutputStream out,
java.lang.String encoding,
MessageContext ctx)
|
static XMLInputFactory |
getXMLInputFactory(MessageContext ctx)
|
static XMLOutputFactory |
getXMLOutputFactory(MessageContext ctx)
|
static org.w3c.dom.Document |
read(javax.xml.parsers.DocumentBuilder builder,
XMLStreamReader reader,
boolean repairing)
|
static void |
readDocElements(org.w3c.dom.Node parent,
XMLStreamReader reader,
boolean repairing)
|
static boolean |
skipToStartOfElement(XMLStreamReader in)
Returns true if currently at the start of an element, otherwise move forwards to the next element start and return true, otherwise false is returned if the end of the stream is reached. |
static boolean |
toNextElement(DepthXMLStreamReader dr)
|
static void |
writeDocument(org.w3c.dom.Document d,
XMLStreamWriter writer,
boolean repairing)
|
static void |
writeElement(org.w3c.dom.Element e,
XMLStreamWriter writer,
boolean repairing)
Writes an Element to an XMLStreamWriter. |
static void |
writeNode(org.w3c.dom.Node n,
XMLStreamWriter writer,
boolean repairing)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public STAXUtils()
Method Detail |
---|
public static boolean skipToStartOfElement(XMLStreamReader in) throws XMLStreamException
XMLStreamException
public static boolean toNextElement(DepthXMLStreamReader dr)
public static void copy(XMLStreamReader reader, XMLStreamWriter writer) throws XMLStreamException
reader
- writer
-
XMLStreamException
public static void writeDocument(org.w3c.dom.Document d, XMLStreamWriter writer, boolean repairing) throws XMLStreamException
XMLStreamException
public static void writeElement(org.w3c.dom.Element e, XMLStreamWriter writer, boolean repairing) throws XMLStreamException
e
- writer
-
XMLStreamException
public static void writeNode(org.w3c.dom.Node n, XMLStreamWriter writer, boolean repairing) throws XMLStreamException
XMLStreamException
public static org.w3c.dom.Document read(javax.xml.parsers.DocumentBuilder builder, XMLStreamReader reader, boolean repairing) throws XMLStreamException
XMLStreamException
public static void readDocElements(org.w3c.dom.Node parent, XMLStreamReader reader, boolean repairing) throws XMLStreamException
parent
- reader
-
XMLStreamException
public static XMLStreamWriter createXMLStreamWriter(java.io.OutputStream out, java.lang.String encoding, MessageContext ctx)
out
- encoding
-
public static XMLOutputFactory getXMLOutputFactory(MessageContext ctx)
public static XMLInputFactory getXMLInputFactory(MessageContext ctx)
public static XMLStreamReader createXMLStreamReader(java.io.InputStream in, java.lang.String encoding, MessageContext ctx)
in
- encoding
- ctx
-
public static XMLStreamReader createXMLStreamReader(java.io.Reader reader)
public static XMLStreamReader createXMLStreamReader(java.io.Reader reader, MessageContext context)
reader
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |