public class POIXMLTypeLoader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static org.apache.xmlbeans.XmlOptions |
DEFAULT_XML_OPTIONS |
Constructor and Description |
---|
POIXMLTypeLoader() |
Modifier and Type | Method and Description |
---|---|
static org.apache.xmlbeans.XmlObject |
newInstance(org.apache.xmlbeans.SchemaType type,
org.apache.xmlbeans.XmlOptions options) |
static org.apache.xmlbeans.xml.stream.XMLInputStream |
newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis,
org.apache.xmlbeans.SchemaType type,
org.apache.xmlbeans.XmlOptions options) |
static org.apache.xmlbeans.XmlObject |
parse(java.io.File file,
org.apache.xmlbeans.SchemaType type,
org.apache.xmlbeans.XmlOptions options) |
static org.apache.xmlbeans.XmlObject |
parse(java.io.InputStream jiois,
org.apache.xmlbeans.SchemaType type,
org.apache.xmlbeans.XmlOptions options) |
static org.apache.xmlbeans.XmlObject |
parse(org.w3c.dom.Node node,
org.apache.xmlbeans.SchemaType type,
org.apache.xmlbeans.XmlOptions options) |
static org.apache.xmlbeans.XmlObject |
parse(java.io.Reader jior,
org.apache.xmlbeans.SchemaType type,
org.apache.xmlbeans.XmlOptions options) |
static org.apache.xmlbeans.XmlObject |
parse(java.lang.String xmlText,
org.apache.xmlbeans.SchemaType type,
org.apache.xmlbeans.XmlOptions options) |
static org.apache.xmlbeans.XmlObject |
parse(java.net.URL file,
org.apache.xmlbeans.SchemaType type,
org.apache.xmlbeans.XmlOptions options) |
static org.apache.xmlbeans.XmlObject |
parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis,
org.apache.xmlbeans.SchemaType type,
org.apache.xmlbeans.XmlOptions options) |
static org.apache.xmlbeans.XmlObject |
parse(javax.xml.stream.XMLStreamReader xsr,
org.apache.xmlbeans.SchemaType type,
org.apache.xmlbeans.XmlOptions options) |
static void |
setClassLoader(java.lang.ClassLoader cl)
Deprecated.
in POI 3.17 - setting a classloader from the outside is now obsolete,
the classloader of the SchemaType will be used
|
public static final org.apache.xmlbeans.XmlOptions DEFAULT_XML_OPTIONS
@Deprecated @Removal(version="4.0") public static void setClassLoader(java.lang.ClassLoader cl)
ClassLoader
which is used, when XmlBeans are dynamically instantiated -
opposed to being loaded by the factory class which is accompanied by each generated XmlBeans interface.
This is especially necessary in a context which doesn't guarantee that the current (thread) context cassloader has access to all XmlBeans schema definitions (*.xsb) - which is typically in OSGI the case.
The classloader will be only set for the current thread in a ThreadLocal
. Although the
ThreadLocal is implemented via a WeakReference
, it's good style to null
the classloader
when the user code is finalized.
cl
- the classloader to be used when XmlBeans classes and definitions are looked uppublic static org.apache.xmlbeans.XmlObject newInstance(org.apache.xmlbeans.SchemaType type, org.apache.xmlbeans.XmlOptions options)
public static org.apache.xmlbeans.XmlObject parse(java.lang.String xmlText, org.apache.xmlbeans.SchemaType type, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException
org.apache.xmlbeans.XmlException
public static org.apache.xmlbeans.XmlObject parse(java.io.File file, org.apache.xmlbeans.SchemaType type, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException
org.apache.xmlbeans.XmlException
java.io.IOException
public static org.apache.xmlbeans.XmlObject parse(java.net.URL file, org.apache.xmlbeans.SchemaType type, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException
org.apache.xmlbeans.XmlException
java.io.IOException
public static org.apache.xmlbeans.XmlObject parse(java.io.InputStream jiois, org.apache.xmlbeans.SchemaType type, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException
org.apache.xmlbeans.XmlException
java.io.IOException
public static org.apache.xmlbeans.XmlObject parse(javax.xml.stream.XMLStreamReader xsr, org.apache.xmlbeans.SchemaType type, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException
org.apache.xmlbeans.XmlException
public static org.apache.xmlbeans.XmlObject parse(java.io.Reader jior, org.apache.xmlbeans.SchemaType type, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, java.io.IOException
org.apache.xmlbeans.XmlException
java.io.IOException
public static org.apache.xmlbeans.XmlObject parse(org.w3c.dom.Node node, org.apache.xmlbeans.SchemaType type, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException
org.apache.xmlbeans.XmlException
public static org.apache.xmlbeans.XmlObject parse(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.SchemaType type, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException
org.apache.xmlbeans.XmlException
org.apache.xmlbeans.xml.stream.XMLStreamException
public static org.apache.xmlbeans.xml.stream.XMLInputStream newValidatingXMLInputStream(org.apache.xmlbeans.xml.stream.XMLInputStream xis, org.apache.xmlbeans.SchemaType type, org.apache.xmlbeans.XmlOptions options) throws org.apache.xmlbeans.XmlException, org.apache.xmlbeans.xml.stream.XMLStreamException
org.apache.xmlbeans.XmlException
org.apache.xmlbeans.xml.stream.XMLStreamException
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.