javax.xml.stream
Class XMLInputFactory

java.lang.Object
  extended by javax.xml.stream.XMLInputFactory

public abstract class XMLInputFactory
extends Object


Field Summary
static String ALLOCATOR
           
static String IS_COALESCING
           
static String IS_NAMESPACE_AWARE
           
static String IS_REPLACING_ENTITY_REFERENCES
           
static String IS_SUPPORTING_EXTERNAL_ENTITIES
           
static String IS_VALIDATING
           
static String REPORTER
           
static String RESOLVER
           
static String SUPPORT_DTD
           
 
Constructor Summary
protected XMLInputFactory()
           
 
Method Summary
abstract  XMLEventReader createFilteredReader(XMLEventReader reader, EventFilter filter)
           
abstract  XMLStreamReader createFilteredReader(XMLStreamReader reader, StreamFilter filter)
           
abstract  XMLEventReader createXMLEventReader(InputStream stream)
           
abstract  XMLEventReader createXMLEventReader(InputStream stream, String encoding)
           
abstract  XMLEventReader createXMLEventReader(Reader reader)
           
abstract  XMLEventReader createXMLEventReader(Source source)
           
abstract  XMLEventReader createXMLEventReader(String systemId, InputStream stream)
           
abstract  XMLEventReader createXMLEventReader(String systemId, Reader reader)
           
abstract  XMLEventReader createXMLEventReader(XMLStreamReader reader)
           
abstract  XMLStreamReader createXMLStreamReader(InputStream stream)
           
abstract  XMLStreamReader createXMLStreamReader(InputStream stream, String encoding)
           
abstract  XMLStreamReader createXMLStreamReader(Reader reader)
           
abstract  XMLStreamReader createXMLStreamReader(Source source)
           
abstract  XMLStreamReader createXMLStreamReader(String systemId, InputStream stream)
           
abstract  XMLStreamReader createXMLStreamReader(String systemId, Reader reader)
           
abstract  XMLEventAllocator getEventAllocator()
           
abstract  Object getProperty(String name)
           
abstract  XMLReporter getXMLReporter()
           
abstract  XMLResolver getXMLResolver()
           
abstract  boolean isPropertySupported(String name)
           
static XMLInputFactory newFactory()
           
static XMLInputFactory newFactory(String factoryId, ClassLoader classLoader)
           
static XMLInputFactory newInstance()
           
static XMLInputFactory newInstance(String factoryId, ClassLoader classLoader)
          Deprecated. to maintain API consistency. All newInstance methods are replaced with corresponding newFactory methods. The replacement newFactory(String factoryId, ClassLoader classLoader) method defines no changes in behavior from this method.
abstract  void setEventAllocator(XMLEventAllocator allocator)
           
abstract  void setProperty(String name, Object value)
           
abstract  void setXMLReporter(XMLReporter reporter)
           
abstract  void setXMLResolver(XMLResolver resolver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ALLOCATOR

public static final String ALLOCATOR
See Also:
Constant Field Values

IS_COALESCING

public static final String IS_COALESCING
See Also:
Constant Field Values

IS_NAMESPACE_AWARE

public static final String IS_NAMESPACE_AWARE
See Also:
Constant Field Values

IS_REPLACING_ENTITY_REFERENCES

public static final String IS_REPLACING_ENTITY_REFERENCES
See Also:
Constant Field Values

IS_SUPPORTING_EXTERNAL_ENTITIES

public static final String IS_SUPPORTING_EXTERNAL_ENTITIES
See Also:
Constant Field Values

IS_VALIDATING

public static final String IS_VALIDATING
See Also:
Constant Field Values

REPORTER

public static final String REPORTER
See Also:
Constant Field Values

RESOLVER

public static final String RESOLVER
See Also:
Constant Field Values

SUPPORT_DTD

public static final String SUPPORT_DTD
See Also:
Constant Field Values
Constructor Detail

XMLInputFactory

protected XMLInputFactory()
Method Detail

newInstance

public static XMLInputFactory newInstance()
                                   throws FactoryConfigurationError
Throws:
FactoryConfigurationError

newFactory

public static XMLInputFactory newFactory()
                                  throws FactoryConfigurationError
Throws:
FactoryConfigurationError

newInstance

public static XMLInputFactory newInstance(String factoryId,
                                          ClassLoader classLoader)
                                   throws FactoryConfigurationError
Deprecated. to maintain API consistency. All newInstance methods are replaced with corresponding newFactory methods. The replacement newFactory(String factoryId, ClassLoader classLoader) method defines no changes in behavior from this method.

Create a new XMLInputFactory

Throws:
FactoryConfigurationError

newFactory

public static XMLInputFactory newFactory(String factoryId,
                                         ClassLoader classLoader)
                                  throws FactoryConfigurationError
Throws:
FactoryConfigurationError

createXMLStreamReader

public abstract XMLStreamReader createXMLStreamReader(Reader reader)
                                               throws XMLStreamException
Throws:
XMLStreamException

createXMLStreamReader

public abstract XMLStreamReader createXMLStreamReader(Source source)
                                               throws XMLStreamException
Throws:
XMLStreamException

createXMLStreamReader

public abstract XMLStreamReader createXMLStreamReader(InputStream stream)
                                               throws XMLStreamException
Throws:
XMLStreamException

createXMLStreamReader

public abstract XMLStreamReader createXMLStreamReader(InputStream stream,
                                                      String encoding)
                                               throws XMLStreamException
Throws:
XMLStreamException

createXMLStreamReader

public abstract XMLStreamReader createXMLStreamReader(String systemId,
                                                      InputStream stream)
                                               throws XMLStreamException
Throws:
XMLStreamException

createXMLStreamReader

public abstract XMLStreamReader createXMLStreamReader(String systemId,
                                                      Reader reader)
                                               throws XMLStreamException
Throws:
XMLStreamException

createXMLEventReader

public abstract XMLEventReader createXMLEventReader(Reader reader)
                                             throws XMLStreamException
Throws:
XMLStreamException

createXMLEventReader

public abstract XMLEventReader createXMLEventReader(String systemId,
                                                    Reader reader)
                                             throws XMLStreamException
Throws:
XMLStreamException

createXMLEventReader

public abstract XMLEventReader createXMLEventReader(XMLStreamReader reader)
                                             throws XMLStreamException
Throws:
XMLStreamException

createXMLEventReader

public abstract XMLEventReader createXMLEventReader(Source source)
                                             throws XMLStreamException
Throws:
XMLStreamException

createXMLEventReader

public abstract XMLEventReader createXMLEventReader(InputStream stream)
                                             throws XMLStreamException
Throws:
XMLStreamException

createXMLEventReader

public abstract XMLEventReader createXMLEventReader(InputStream stream,
                                                    String encoding)
                                             throws XMLStreamException
Throws:
XMLStreamException

createXMLEventReader

public abstract XMLEventReader createXMLEventReader(String systemId,
                                                    InputStream stream)
                                             throws XMLStreamException
Throws:
XMLStreamException

createFilteredReader

public abstract XMLStreamReader createFilteredReader(XMLStreamReader reader,
                                                     StreamFilter filter)
                                              throws XMLStreamException
Throws:
XMLStreamException

createFilteredReader

public abstract XMLEventReader createFilteredReader(XMLEventReader reader,
                                                    EventFilter filter)
                                             throws XMLStreamException
Throws:
XMLStreamException

getXMLResolver

public abstract XMLResolver getXMLResolver()

setXMLResolver

public abstract void setXMLResolver(XMLResolver resolver)

getXMLReporter

public abstract XMLReporter getXMLReporter()

setXMLReporter

public abstract void setXMLReporter(XMLReporter reporter)

setProperty

public abstract void setProperty(String name,
                                 Object value)
                          throws IllegalArgumentException
Throws:
IllegalArgumentException

getProperty

public abstract Object getProperty(String name)
                            throws IllegalArgumentException
Throws:
IllegalArgumentException

isPropertySupported

public abstract boolean isPropertySupported(String name)

setEventAllocator

public abstract void setEventAllocator(XMLEventAllocator allocator)

getEventAllocator

public abstract XMLEventAllocator getEventAllocator()


Copyright © 2003-2012 The Apache Software Foundation. All Rights Reserved.