public class StAXDialectDetector extends Object
Note that this class internally maintains a cache of detected dialects. The overhead caused by invocations of methods in this class is thus small.
Modifier and Type | Method and Description |
---|---|
static StAXDialect |
getDialect(Class implementationClass)
Detect the dialect of a given StAX implementation.
|
static javax.xml.stream.XMLInputFactory |
normalize(javax.xml.stream.XMLInputFactory factory)
Detect the dialect of a given
XMLInputFactory and normalize it. |
static javax.xml.stream.XMLOutputFactory |
normalize(javax.xml.stream.XMLOutputFactory factory)
Detect the dialect of a given
XMLOutputFactory and normalize it. |
public static javax.xml.stream.XMLInputFactory normalize(javax.xml.stream.XMLInputFactory factory)
XMLInputFactory
and normalize it.factory
- the factory to normalizeStAXDialect.normalize(XMLInputFactory)
public static javax.xml.stream.XMLOutputFactory normalize(javax.xml.stream.XMLOutputFactory factory)
XMLOutputFactory
and normalize it.factory
- the factory to normalizeStAXDialect.normalize(XMLOutputFactory)
public static StAXDialect getDialect(Class implementationClass)
implementationClass
- any class that is part of the StAX implementation; typically this should be a
XMLInputFactory
, XMLOutputFactory
,
XMLStreamReader
or
XMLStreamWriter
implementationCopyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.