|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.xml.stream.XMLInputFactory
com.bea.xml.stream.MXParserFactory
public class MXParserFactory
| Field Summary |
|---|
| Fields inherited from class javax.xml.stream.XMLInputFactory |
|---|
ALLOCATOR, IS_COALESCING, IS_NAMESPACE_AWARE, IS_REPLACING_ENTITY_REFERENCES, IS_SUPPORTING_EXTERNAL_ENTITIES, IS_VALIDATING, REPORTER, RESOLVER, SUPPORT_DTD |
| Constructor Summary | |
|---|---|
MXParserFactory()
|
|
| Method Summary | |
|---|---|
javax.xml.stream.XMLEventReader |
createFilteredReader(javax.xml.stream.XMLEventReader reader,
javax.xml.stream.EventFilter filter)
Create a filtered event reader that wraps the filter around the event reader |
javax.xml.stream.XMLStreamReader |
createFilteredReader(javax.xml.stream.XMLStreamReader reader,
javax.xml.stream.StreamFilter filter)
Create a filtered reader that wraps the filter around the reader |
javax.xml.stream.XMLEventReader |
createXMLEventReader(java.io.InputStream stream)
Create a new XMLEventReader from an input stream |
javax.xml.stream.XMLEventReader |
createXMLEventReader(java.io.InputStream stream,
java.lang.String encoding)
Create a new XMLEventReader from an input stream |
javax.xml.stream.XMLEventReader |
createXMLEventReader(java.io.Reader reader)
Create a new XMLEventReader from a reader |
javax.xml.stream.XMLEventReader |
createXMLEventReader(javax.xml.transform.Source source)
Create a new XMLEventReader from a JAXP source |
javax.xml.stream.XMLEventReader |
createXMLEventReader(java.lang.String systemId,
java.io.InputStream stream)
Create a new XMLEventReader from a java.io.InputStream |
javax.xml.stream.XMLEventReader |
createXMLEventReader(java.lang.String systemId,
java.io.Reader reader)
Create a new XMLEventReader from a reader |
javax.xml.stream.XMLEventReader |
createXMLEventReader(javax.xml.stream.XMLStreamReader reader)
Create a new XMLEventReader from an XMLStreamReader |
javax.xml.stream.XMLStreamReader |
createXMLStreamReader(java.io.InputStream stream)
Create a new XMLStreamReader from a java.io.stream |
javax.xml.stream.XMLStreamReader |
createXMLStreamReader(java.io.InputStream stream,
java.lang.String encoding)
Create a new XMLStreamReader from a java.io.stream |
javax.xml.stream.XMLStreamReader |
createXMLStreamReader(java.io.Reader in)
Create a new XMLStreamReader from a reader |
javax.xml.stream.XMLStreamReader |
createXMLStreamReader(javax.xml.transform.Source source)
Create a new XMLStreamReader from a JAXP source. |
javax.xml.stream.XMLStreamReader |
createXMLStreamReader(java.lang.String systemId,
java.io.InputStream stream)
Create a new XMLStreamReader from a java.io.InputStream |
javax.xml.stream.XMLStreamReader |
createXMLStreamReader(java.lang.String systemId,
java.io.Reader reader)
Create a new XMLStreamReader from a java.io.InputStream |
javax.xml.stream.util.XMLEventAllocator |
getEventAllocator()
Gets the allocator used by streams created with this factory |
java.lang.Object |
getProperty(java.lang.String name)
Get the value of a feature/property from the underlying implementation |
javax.xml.stream.XMLReporter |
getXMLReporter()
The reporter that will be set on any XMLStreamReader or XMLEventReader created by this factory instance. |
javax.xml.stream.XMLResolver |
getXMLResolver()
The resolver that will be set on any XMLStreamReader or XMLEventReader created by this factory instance. |
boolean |
isCoalescing()
Indicates whether or not the factory is configured to produced streams that coalesce adjacent text nodes. |
boolean |
isPropertySupported(java.lang.String name)
Query the set of properties that this factory supports. |
static javax.xml.stream.XMLInputFactory |
newInstance()
|
void |
setCoalescing(boolean coalescing)
Specifies that the stream produced by this code will append all adjacent text nodes. |
void |
setEventAllocator(javax.xml.stream.util.XMLEventAllocator allocator)
Set a user defined event allocator for events |
void |
setProperty(java.lang.String name,
java.lang.Object value)
Allows the user to set specific feature/property on the underlying implementation. |
void |
setXMLReporter(javax.xml.stream.XMLReporter reporter)
The reporter that will be set on any XMLStreamReader or XMLEventReader created by this factory instance. |
void |
setXMLResolver(javax.xml.stream.XMLResolver resolver)
The resolver that will be set on any XMLStreamReader or XMLEventReader created by this factory instance. |
| Methods inherited from class javax.xml.stream.XMLInputFactory |
|---|
newInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MXParserFactory()
| Method Detail |
|---|
public static javax.xml.stream.XMLInputFactory newInstance()
public javax.xml.stream.XMLStreamReader createXMLStreamReader(javax.xml.transform.Source source)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLInputFactory
createXMLStreamReader in class javax.xml.stream.XMLInputFactorysource - the source to read from
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamReader createXMLStreamReader(java.io.InputStream stream)
throws javax.xml.stream.XMLStreamException
createXMLStreamReader in class javax.xml.stream.XMLInputFactorystream - the InputStream to read from
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamReader createXMLStreamReader(java.io.InputStream stream,
java.lang.String encoding)
throws javax.xml.stream.XMLStreamException
createXMLStreamReader in class javax.xml.stream.XMLInputFactorystream - the InputStream to read fromencoding - the character encoding of the stream
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamReader createXMLStreamReader(java.lang.String systemId,
java.io.InputStream stream)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLInputFactory
createXMLStreamReader in class javax.xml.stream.XMLInputFactorysystemId - the system ID of the streamstream - the InputStream to read from
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLStreamReader createXMLStreamReader(java.lang.String systemId,
java.io.Reader reader)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLInputFactory
createXMLStreamReader in class javax.xml.stream.XMLInputFactorysystemId - the system ID of the streamreader - the InputStream to read from
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventReader createXMLEventReader(java.lang.String systemId,
java.io.Reader reader)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLInputFactory
createXMLEventReader in class javax.xml.stream.XMLInputFactorysystemId - the system ID of the inputreader - the XML data to read from
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventReader createXMLEventReader(java.lang.String systemId,
java.io.InputStream stream)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLInputFactory
createXMLEventReader in class javax.xml.stream.XMLInputFactorysystemId - the system ID of the streamstream - the InputStream to read from
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventReader createXMLEventReader(java.io.Reader reader)
throws javax.xml.stream.XMLStreamException
createXMLEventReader in class javax.xml.stream.XMLInputFactoryreader - the XML data to read from
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventReader createXMLEventReader(javax.xml.stream.XMLStreamReader reader)
throws javax.xml.stream.XMLStreamException
createXMLEventReader in class javax.xml.stream.XMLInputFactoryreader - the XMLEventReader to read from
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventReader createXMLEventReader(javax.xml.transform.Source source)
throws javax.xml.stream.XMLStreamException
createXMLEventReader in class javax.xml.stream.XMLInputFactorysource - the source to read from
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventReader createXMLEventReader(java.io.InputStream stream)
throws javax.xml.stream.XMLStreamException
createXMLEventReader in class javax.xml.stream.XMLInputFactorystream - the InputStream to read from
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventReader createXMLEventReader(java.io.InputStream stream,
java.lang.String encoding)
throws javax.xml.stream.XMLStreamException
createXMLEventReader in class javax.xml.stream.XMLInputFactorystream - the InputStream to read fromencoding - the character encoding of the stream
javax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLResolver getXMLResolver()
getXMLResolver in class javax.xml.stream.XMLInputFactorypublic void setXMLResolver(javax.xml.stream.XMLResolver resolver)
setXMLResolver in class javax.xml.stream.XMLInputFactoryresolver - the resolver to use to resolve references
public javax.xml.stream.XMLStreamReader createFilteredReader(javax.xml.stream.XMLStreamReader reader,
javax.xml.stream.StreamFilter filter)
throws javax.xml.stream.XMLStreamException
createFilteredReader in class javax.xml.stream.XMLInputFactoryreader - the reader to filterfilter - the filter to apply to the reader
javax.xml.stream.XMLStreamException
public javax.xml.stream.XMLEventReader createFilteredReader(javax.xml.stream.XMLEventReader reader,
javax.xml.stream.EventFilter filter)
throws javax.xml.stream.XMLStreamException
createFilteredReader in class javax.xml.stream.XMLInputFactoryreader - the event reader to wrapfilter - the filter to apply to the event reader
javax.xml.stream.XMLStreamExceptionpublic javax.xml.stream.XMLReporter getXMLReporter()
getXMLReporter in class javax.xml.stream.XMLInputFactorypublic void setXMLReporter(javax.xml.stream.XMLReporter reporter)
setXMLReporter in class javax.xml.stream.XMLInputFactoryreporter - the resolver to use to report non fatal errorspublic void setEventAllocator(javax.xml.stream.util.XMLEventAllocator allocator)
setEventAllocator in class javax.xml.stream.XMLInputFactoryallocator - the user defined allocatorpublic javax.xml.stream.util.XMLEventAllocator getEventAllocator()
getEventAllocator in class javax.xml.stream.XMLInputFactorypublic void setCoalescing(boolean coalescing)
public boolean isCoalescing()
public void setProperty(java.lang.String name,
java.lang.Object value)
throws java.lang.IllegalArgumentException
javax.xml.stream.XMLInputFactory
setProperty in class javax.xml.stream.XMLInputFactoryname - The name of the property (may not be null)value - The value of the property
java.lang.IllegalArgumentException - if the property is not supported
public java.lang.Object getProperty(java.lang.String name)
throws java.lang.IllegalArgumentException
javax.xml.stream.XMLInputFactory
getProperty in class javax.xml.stream.XMLInputFactoryname - The name of the property (may not be null)
java.lang.IllegalArgumentException - if the property is not supported
public javax.xml.stream.XMLStreamReader createXMLStreamReader(java.io.Reader in)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLInputFactory
createXMLStreamReader in class javax.xml.stream.XMLInputFactoryin - the XML data to read from
javax.xml.stream.XMLStreamExceptionpublic boolean isPropertySupported(java.lang.String name)
javax.xml.stream.XMLInputFactory
isPropertySupported in class javax.xml.stream.XMLInputFactoryname - The name of the property (may not be null)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||