Package org.codehaus.jettison
Class AbstractXMLInputFactory
java.lang.Object
javax.xml.stream.XMLInputFactory
org.codehaus.jettison.AbstractXMLInputFactory
- Direct Known Subclasses:
BadgerFishXMLInputFactory
,MappedXMLInputFactory
-
Field Summary
FieldsFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFilteredReader
(XMLEventReader arg0, EventFilter arg1) createFilteredReader
(XMLStreamReader arg0, StreamFilter arg1) protected JSONTokener
createXMLEventReader
(InputStream arg0, String encoding) createXMLEventReader
(Reader arg0) createXMLEventReader
(String systemId, InputStream arg1) createXMLEventReader
(String systemId, Reader arg1) createXMLEventReader
(Source arg0) createXMLStreamReader
(InputStream is, String charset) createXMLStreamReader
(Reader reader) createXMLStreamReader
(String systemId, InputStream arg1) createXMLStreamReader
(String systemId, Reader r) abstract XMLStreamReader
createXMLStreamReader
(JSONTokener tokener) getProperty
(String arg0) boolean
isPropertySupported
(String arg0) private String
readAll
(InputStream in, String encoding) This helper method tries to read and decode input efficiently into a result String.private String
void
void
setProperty
(String arg0, Object arg1) void
setXMLReporter
(XMLReporter arg0) void
setXMLResolver
(XMLResolver arg0) Methods inherited from class javax.xml.stream.XMLInputFactory
newFactory, newFactory, newInstance, newInstance
-
Field Details
-
INPUT_BUF_SIZE
private static final int INPUT_BUF_SIZE- See Also:
-
bufSize
private int bufSize
-
-
Constructor Details
-
AbstractXMLInputFactory
protected AbstractXMLInputFactory() -
AbstractXMLInputFactory
protected AbstractXMLInputFactory(int bufSize)
-
-
Method Details
-
createFilteredReader
public XMLEventReader createFilteredReader(XMLEventReader arg0, EventFilter arg1) throws XMLStreamException - Specified by:
createFilteredReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createFilteredReader
public XMLStreamReader createFilteredReader(XMLStreamReader arg0, StreamFilter arg1) throws XMLStreamException - Specified by:
createFilteredReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(InputStream arg0, String encoding) throws XMLStreamException - Specified by:
createXMLEventReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLEventReader
- Specified by:
createXMLEventReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLEventReader
- Specified by:
createXMLEventReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLEventReader
- Specified by:
createXMLEventReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(String systemId, InputStream arg1) throws XMLStreamException - Specified by:
createXMLEventReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLEventReader
- Specified by:
createXMLEventReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLEventReader
- Specified by:
createXMLEventReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLStreamReader
- Specified by:
createXMLStreamReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(InputStream is, String charset) throws XMLStreamException - Specified by:
createXMLStreamReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createNewJSONTokener
-
readAll
This helper method tries to read and decode input efficiently into a result String.- Throws:
IOException
-
createXMLStreamReader
public abstract XMLStreamReader createXMLStreamReader(JSONTokener tokener) throws XMLStreamException - Throws:
XMLStreamException
-
createXMLStreamReader
- Specified by:
createXMLStreamReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
readAll
- Throws:
IOException
-
createXMLStreamReader
- Specified by:
createXMLStreamReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(String systemId, InputStream arg1) throws XMLStreamException - Specified by:
createXMLStreamReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
createXMLStreamReader
- Specified by:
createXMLStreamReader
in classXMLInputFactory
- Throws:
XMLStreamException
-
getEventAllocator
- Specified by:
getEventAllocator
in classXMLInputFactory
-
getProperty
- Specified by:
getProperty
in classXMLInputFactory
- Throws:
IllegalArgumentException
-
getXMLReporter
- Specified by:
getXMLReporter
in classXMLInputFactory
-
getXMLResolver
- Specified by:
getXMLResolver
in classXMLInputFactory
-
isPropertySupported
- Specified by:
isPropertySupported
in classXMLInputFactory
-
setEventAllocator
- Specified by:
setEventAllocator
in classXMLInputFactory
-
setProperty
- Specified by:
setProperty
in classXMLInputFactory
- Throws:
IllegalArgumentException
-
setXMLReporter
- Specified by:
setXMLReporter
in classXMLInputFactory
-
setXMLResolver
- Specified by:
setXMLResolver
in classXMLInputFactory
-