Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.poi
Class POIXMLTypeLoader

    java.lang.Object
      org.apache.poi.POIXMLTypeLoader

    public class POIXMLTypeLoader

extends java.lang.Object

Field Summary
`static org.apache.xmlbeans.XmlOptions` | `DEFAULT_XML_OPTIONS`

Constructor Summary
`POIXMLTypeLoader()`

Method Summary
`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

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### DEFAULT_XML_OPTIONS

    public static final org.apache.xmlbeans.XmlOptions DEFAULT_XML_OPTIONS

Constructor Detail

### POIXMLTypeLoader

    public POIXMLTypeLoader()

Method Detail

### setClassLoader

    @Deprecated
    @Removal(version="4.0")
    public 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

  Sets the `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.

  Parameters:
    `cl` - the classloader to be used when XmlBeans classes and definitions are looked up

### newInstance

    public static org.apache.xmlbeans.XmlObject newInstance(org.apache.xmlbeans.SchemaType type,
                                                            org.apache.xmlbeans.XmlOptions options)

### parse

    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

  Throws:
    `org.apache.xmlbeans.XmlException`

### parse

    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

  Throws:
    `org.apache.xmlbeans.XmlException`
    `java.io.IOException`

### parse

    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

  Throws:
    `org.apache.xmlbeans.XmlException`
    `java.io.IOException`

### parse

    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

  Throws:
    `org.apache.xmlbeans.XmlException`
    `java.io.IOException`

### parse

    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

  Throws:
    `org.apache.xmlbeans.XmlException`

### parse

    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

  Throws:
    `org.apache.xmlbeans.XmlException`
    `java.io.IOException`

### parse

    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

  Throws:
    `org.apache.xmlbeans.XmlException`

### parse

    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

  Throws:
    `org.apache.xmlbeans.XmlException`
    `org.apache.xmlbeans.xml.stream.XMLStreamException`

### newValidatingXMLInputStream

    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

  Throws:
    `org.apache.xmlbeans.XmlException`
    `org.apache.xmlbeans.xml.stream.XMLStreamException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2017 The Apache Software Foundation or its licensors, as applicable.