org.xwiki.xml.stax
Class StAXUtils

java.lang.Object
  extended by org.xwiki.xml.stax.StAXUtils

public final class StAXUtils
extends Object

Various tools related to StAX API.

Since:
5.2M1
Version:
$Id: ebf2fe539a43ffe5a0d85f3a79c9f3bdfe015cc8 $

Method Summary
static XMLEventReader getXMLEventReader(Source source)
          Extract or create an instance of XMLEventReader from the provided Source.
static XMLStreamReader getXMLStreamReader(Source source)
          Extract or create an instance of XMLStreamReader from the provided Source.
static XMLStreamWriter getXMLStreamWriter(Result result)
          Extract or create an instance of XMLStreamWriter from the provided Result.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getXMLStreamReader

public static XMLStreamReader getXMLStreamReader(Source source)
                                          throws XMLStreamException
Extract or create an instance of XMLStreamReader from the provided Source.

Parameters:
source - the source
Returns:
the XMLStreamReader
Throws:
XMLStreamException - when failing to extract xml stream reader

getXMLEventReader

public static XMLEventReader getXMLEventReader(Source source)
                                        throws XMLStreamException
Extract or create an instance of XMLEventReader from the provided Source.

Parameters:
source - the source
Returns:
the XMLEventReader
Throws:
XMLStreamException - when failing to extract xml event reader

getXMLStreamWriter

public static XMLStreamWriter getXMLStreamWriter(Result result)
                                          throws XMLStreamException
Extract or create an instance of XMLStreamWriter from the provided Result.

Parameters:
result - the result
Returns:
the XMLStreamWriter
Throws:
XMLStreamException - when failing to extract xml stream writer


Copyright © 2004-2013 XWiki. All Rights Reserved.