|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cxf.staxutils.StaxUtils
public final class StaxUtils
Method Summary | |
---|---|
static void |
close(XMLStreamReader reader)
|
static void |
close(XMLStreamWriter writer)
|
static Document |
copy(Document doc)
|
static void |
copy(Document doc,
XMLStreamWriter writer)
|
static void |
copy(Element node,
XMLStreamWriter writer)
|
static void |
copy(Source source,
OutputStream os)
|
static void |
copy(Source source,
XMLStreamWriter writer)
|
static void |
copy(XMLStreamReader reader,
OutputStream os)
|
static void |
copy(XMLStreamReader reader,
XMLStreamWriter writer)
Copies the reader to the writer. |
static void |
copy(XMLStreamReader reader,
XMLStreamWriter writer,
boolean fragment)
|
static XMLStreamReader |
createFilteredReader(XMLStreamReader reader,
StreamFilter filter)
|
static XMLInputFactory |
createXMLInputFactory(boolean nsAware)
Return a new factory so that the caller can set sticky parameters. |
static XMLStreamReader |
createXMLStreamReader(Document doc)
|
static XMLStreamReader |
createXMLStreamReader(Document doc,
String sysId)
|
static XMLStreamReader |
createXMLStreamReader(Element el)
|
static XMLStreamReader |
createXMLStreamReader(Element el,
String sysId)
|
static XMLStreamReader |
createXMLStreamReader(InputSource src)
|
static XMLStreamReader |
createXMLStreamReader(InputStream in)
|
static XMLStreamReader |
createXMLStreamReader(InputStream in,
String encoding)
|
static XMLStreamReader |
createXMLStreamReader(Reader reader)
|
static XMLStreamReader |
createXMLStreamReader(Source source)
|
static XMLStreamReader |
createXMLStreamReader(String systemId,
InputStream in)
|
static XMLStreamWriter |
createXMLStreamWriter(OutputStream out)
|
static XMLStreamWriter |
createXMLStreamWriter(OutputStream out,
String encoding)
|
static XMLStreamWriter |
createXMLStreamWriter(Result r)
|
static XMLStreamWriter |
createXMLStreamWriter(Writer out)
|
static String |
getUniquePrefix(XMLStreamWriter writer)
|
static String |
getUniquePrefix(XMLStreamWriter writer,
String namespaceURI)
|
static String |
getUniquePrefix(XMLStreamWriter writer,
String namespaceURI,
boolean declare)
Create a unique namespace uri/prefix combination. |
static boolean |
isWoodstox()
CXF works with multiple STaX parsers. |
static void |
nextEvent(XMLStreamReader dr)
|
static void |
printXmlFragment(XMLStreamReader reader)
|
static Document |
read(DocumentBuilder builder,
XMLStreamReader reader,
boolean repairing)
|
static Document |
read(InputSource s)
|
static Document |
read(InputStream s)
|
static Document |
read(Source s)
|
static Document |
read(XMLStreamReader reader)
|
static Document |
read(XMLStreamReader reader,
boolean recordLoc)
|
static void |
readDocElements(Document doc,
Node parent,
XMLStreamReader reader,
boolean repairing,
boolean recordLoc)
|
static void |
readDocElements(Document doc,
Node parent,
XMLStreamReader reader,
boolean repairing,
boolean recordLoc,
boolean isThreshold)
|
static void |
readDocElements(Node parent,
XMLStreamReader reader,
boolean repairing)
|
static void |
readDocElements(Node parent,
XMLStreamReader reader,
boolean repairing,
boolean isThreshold)
|
static QName |
readQName(XMLStreamReader reader)
Reads a QName from the element text. |
static void |
setInnerElementCountThreshold(int i)
|
static void |
setInnerElementLevelThreshold(int i)
|
static boolean |
skipToStartOfElement(DepthXMLStreamReader in)
|
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 boolean |
toNextTag(DepthXMLStreamReader reader,
QName endTag)
|
static boolean |
toNextTag(XMLStreamReader reader)
|
static boolean |
toNextText(DepthXMLStreamReader reader)
|
static String |
toString(Document doc)
|
static String |
toString(Element el)
|
static void |
writeDocument(Document d,
XMLStreamWriter writer,
boolean repairing)
|
static void |
writeDocument(Document d,
XMLStreamWriter writer,
boolean writeProlog,
boolean repairing)
|
static void |
writeElement(Element e,
XMLStreamWriter writer,
boolean repairing)
Writes an Element to an XMLStreamWriter. |
static void |
writeElement(Element e,
XMLStreamWriter writer,
boolean repairing,
boolean endElement)
Writes an Element to an XMLStreamWriter. |
static void |
writeEvent(XMLEvent event,
XMLStreamWriter writer)
|
static void |
writeNode(Node n,
XMLStreamWriter writer,
boolean repairing)
|
static void |
writeStartElement(XMLStreamWriter writer,
String prefix,
String name,
String namespace)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setInnerElementLevelThreshold(int i)
public static void setInnerElementCountThreshold(int i)
public static boolean isWoodstox()
public static XMLInputFactory createXMLInputFactory(boolean nsAware)
nsAware
-
public static XMLStreamWriter createXMLStreamWriter(Writer out)
public static XMLStreamWriter createXMLStreamWriter(OutputStream out)
public static XMLStreamWriter createXMLStreamWriter(OutputStream out, String encoding)
public static XMLStreamWriter createXMLStreamWriter(Result r)
public static XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter)
public static void nextEvent(XMLStreamReader dr)
public static boolean toNextText(DepthXMLStreamReader reader)
public static boolean toNextTag(XMLStreamReader reader)
public static boolean toNextTag(DepthXMLStreamReader reader, QName endTag)
public static void writeStartElement(XMLStreamWriter writer, String prefix, String name, String namespace) throws XMLStreamException
XMLStreamException
public static boolean skipToStartOfElement(XMLStreamReader in) throws XMLStreamException
XMLStreamException
public static boolean toNextElement(DepthXMLStreamReader dr)
public static boolean skipToStartOfElement(DepthXMLStreamReader in) throws XMLStreamException
XMLStreamException
public static void copy(Source source, OutputStream os) throws XMLStreamException
XMLStreamException
public static void copy(Source source, XMLStreamWriter writer) throws XMLStreamException
XMLStreamException
public static Document copy(Document doc) throws XMLStreamException, ParserConfigurationException
XMLStreamException
ParserConfigurationException
public static void copy(Document doc, XMLStreamWriter writer) throws XMLStreamException
XMLStreamException
public static void copy(Element node, XMLStreamWriter writer) throws XMLStreamException
XMLStreamException
public static void copy(XMLStreamReader reader, OutputStream os) throws XMLStreamException
XMLStreamException
public static void copy(XMLStreamReader reader, XMLStreamWriter writer) throws XMLStreamException
reader
- writer
-
XMLStreamException
public static void copy(XMLStreamReader reader, XMLStreamWriter writer, boolean fragment) throws XMLStreamException
XMLStreamException
public static void writeDocument(Document d, XMLStreamWriter writer, boolean repairing) throws XMLStreamException
XMLStreamException
public static void writeDocument(Document d, XMLStreamWriter writer, boolean writeProlog, boolean repairing) throws XMLStreamException
XMLStreamException
public static void writeElement(Element e, XMLStreamWriter writer, boolean repairing) throws XMLStreamException
e
- writer
-
XMLStreamException
public static void writeElement(Element e, XMLStreamWriter writer, boolean repairing, boolean endElement) throws XMLStreamException
e
- writer
- endElement
- true if the element should be ended
XMLStreamException
public static void writeNode(Node n, XMLStreamWriter writer, boolean repairing) throws XMLStreamException
XMLStreamException
public static Document read(Source s) throws XMLStreamException
XMLStreamException
public static Document read(InputStream s) throws XMLStreamException
XMLStreamException
public static Document read(InputSource s) throws XMLStreamException
XMLStreamException
public static Document read(XMLStreamReader reader) throws XMLStreamException
XMLStreamException
public static Document read(XMLStreamReader reader, boolean recordLoc) throws XMLStreamException
XMLStreamException
public static Document read(DocumentBuilder builder, XMLStreamReader reader, boolean repairing) throws XMLStreamException
XMLStreamException
public static void readDocElements(Node parent, XMLStreamReader reader, boolean repairing) throws XMLStreamException
XMLStreamException
public static void readDocElements(Node parent, XMLStreamReader reader, boolean repairing, boolean isThreshold) throws XMLStreamException
XMLStreamException
public static void readDocElements(Document doc, Node parent, XMLStreamReader reader, boolean repairing, boolean recordLoc) throws XMLStreamException
parent
- reader
-
XMLStreamException
public static void readDocElements(Document doc, Node parent, XMLStreamReader reader, boolean repairing, boolean recordLoc, boolean isThreshold) throws XMLStreamException
parent
- reader
-
XMLStreamException
public static XMLStreamReader createXMLStreamReader(InputSource src)
public static XMLStreamReader createXMLStreamReader(InputStream in, String encoding)
in
- encoding
- ctx
-
public static XMLStreamReader createXMLStreamReader(InputStream in)
in
-
public static XMLStreamReader createXMLStreamReader(String systemId, InputStream in)
public static XMLStreamReader createXMLStreamReader(Element el)
public static XMLStreamReader createXMLStreamReader(Document doc)
public static XMLStreamReader createXMLStreamReader(Element el, String sysId)
public static XMLStreamReader createXMLStreamReader(Document doc, String sysId)
public static XMLStreamReader createXMLStreamReader(Source source)
public static XMLStreamReader createXMLStreamReader(Reader reader)
reader
-
public static QName readQName(XMLStreamReader reader) throws XMLStreamException
XMLStreamException
public static String getUniquePrefix(XMLStreamWriter writer, String namespaceURI, boolean declare) throws XMLStreamException
nsUri
-
XMLStreamException
public static String getUniquePrefix(XMLStreamWriter writer, String namespaceURI) throws XMLStreamException
XMLStreamException
public static String getUniquePrefix(XMLStreamWriter writer)
public static void printXmlFragment(XMLStreamReader reader)
public static void writeEvent(XMLEvent event, XMLStreamWriter writer) throws XMLStreamException
XMLStreamException
public static String toString(Document doc) throws XMLStreamException
XMLStreamException
public static String toString(Element el) throws XMLStreamException
XMLStreamException
public static void close(XMLStreamReader reader)
public static void close(XMLStreamWriter writer)
|
Apache CXF API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |