Class AbstractXMLInputFactory
java.lang.Object
javax.xml.stream.XMLInputFactory
org.codehaus.jettison.AbstractXMLInputFactory
- Direct Known Subclasses:
BadgerFishXMLInputFactory, MappedXMLInputFactory
-
Field Summary
FieldsFields inherited from class 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 JSONTokenercreateXMLEventReader(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 XMLStreamReadercreateXMLStreamReader(JSONTokener tokener) getProperty(String arg0) booleanisPropertySupported(String arg0) private StringreadAll(InputStream in, String encoding) This helper method tries to read and decode input efficiently into a result String.private StringvoidvoidsetProperty(String arg0, Object arg1) voidsetXMLReporter(XMLReporter arg0) voidsetXMLResolver(XMLResolver arg0) Methods inherited from class 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:
createFilteredReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createFilteredReader
public XMLStreamReader createFilteredReader(XMLStreamReader arg0, StreamFilter arg1) throws XMLStreamException - Specified by:
createFilteredReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(InputStream arg0, String encoding) throws XMLStreamException - Specified by:
createXMLEventReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLEventReader
- Specified by:
createXMLEventReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLEventReader
- Specified by:
createXMLEventReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLEventReader
- Specified by:
createXMLEventReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLEventReader
public XMLEventReader createXMLEventReader(String systemId, InputStream arg1) throws XMLStreamException - Specified by:
createXMLEventReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLEventReader
- Specified by:
createXMLEventReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLEventReader
- Specified by:
createXMLEventReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLStreamReader
- Specified by:
createXMLStreamReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(InputStream is, String charset) throws XMLStreamException - Specified by:
createXMLStreamReaderin 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:
createXMLStreamReaderin classXMLInputFactory- Throws:
XMLStreamException
-
readAll
- Throws:
IOException
-
createXMLStreamReader
- Specified by:
createXMLStreamReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLStreamReader
public XMLStreamReader createXMLStreamReader(String systemId, InputStream arg1) throws XMLStreamException - Specified by:
createXMLStreamReaderin classXMLInputFactory- Throws:
XMLStreamException
-
createXMLStreamReader
- Specified by:
createXMLStreamReaderin classXMLInputFactory- Throws:
XMLStreamException
-
getEventAllocator
- Specified by:
getEventAllocatorin classXMLInputFactory
-
getProperty
- Specified by:
getPropertyin classXMLInputFactory- Throws:
IllegalArgumentException
-
getXMLReporter
- Specified by:
getXMLReporterin classXMLInputFactory
-
getXMLResolver
- Specified by:
getXMLResolverin classXMLInputFactory
-
isPropertySupported
- Specified by:
isPropertySupportedin classXMLInputFactory
-
setEventAllocator
- Specified by:
setEventAllocatorin classXMLInputFactory
-
setProperty
- Specified by:
setPropertyin classXMLInputFactory- Throws:
IllegalArgumentException
-
setXMLReporter
- Specified by:
setXMLReporterin classXMLInputFactory
-
setXMLResolver
- Specified by:
setXMLResolverin classXMLInputFactory
-