Class DefaultX4OReader<T>
java.lang.Object
org.x4o.xml.io.AbstractX4OConnectionDebug
org.x4o.xml.io.AbstractX4OConnection
org.x4o.xml.io.AbstractX4OReaderSession<T>
org.x4o.xml.io.AbstractX4OReader<T>
org.x4o.xml.io.DefaultX4OReader<T>
- All Implemented Interfaces:
X4OConnection
,X4OReader<T>
,X4OReaderSession<T>
DefaultX4OReader can read and parse the xml language.
- Version:
- 1.0 Aug 9, 2012
- Author:
- Willem Cazander
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final SAX3PropertyConfig
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields inherited from class org.x4o.xml.io.AbstractX4OConnection
phaseSkip, phaseStop
Fields inherited from class org.x4o.xml.io.AbstractX4OConnectionDebug
ABSTRACT_DEBUG_OUTPUT_HANDLER, ABSTRACT_DEBUG_OUTPUT_STREAM, ABSTRACT_DEBUG_OUTPUT_STREAM_CLOSE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addELBeanInstance
(String name, Object bean) Adds an bean instance to the el context.protected void
read()
Parses the input stream as a X4O document.readSession
(InputStream input, String systemId, URL basePath) Method to parse the xml data.void
releaseSession
(X4OLanguageSession context) Methods inherited from class org.x4o.xml.io.AbstractX4OReader
read, readFile, readFile, readResource, readString, readUrl
Methods inherited from class org.x4o.xml.io.AbstractX4OReaderSession
readFileSession, readFileSession, readResourceSession, readStringSession, readUrlSession
Methods inherited from class org.x4o.xml.io.AbstractX4OConnection
addPhaseSkip, getLanguage, getProperty, getPropertyKeys, setPhaseStop, setProperty
Methods inherited from class org.x4o.xml.io.AbstractX4OConnectionDebug
debugException, debugStart, debugStop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.x4o.xml.io.X4OConnection
addPhaseSkip, getProperty, getPropertyKeys, setPhaseStop, setProperty
-
Field Details
-
DEFAULT_PROPERTY_CONFIG
-
SAX_ERROR_HANDLER
- See Also:
-
SAX_ENTITY_RESOLVER
- See Also:
-
DOC_EMPTY_NAMESPACE_URI
- See Also:
-
DOC_BUFFER_SIZE
- See Also:
-
INPUT_STREAM
- See Also:
-
INPUT_ENCODING
- See Also:
-
INPUT_SOURCE
- See Also:
-
INPUT_SYSTEM_ID
- See Also:
-
INPUT_BASE_PATH
- See Also:
-
VALIDATION_SCHEMA_AUTO_WRITE
- See Also:
-
VALIDATION_SCHEMA_PATH
- See Also:
-
VALIDATION_INPUT_DOC
- See Also:
-
VALIDATION_INPUT_SCHEMA
- See Also:
-
DEBUG_OUTPUT_HANDLER
- See Also:
-
DEBUG_OUTPUT_STREAM
- See Also:
-
DEBUG_OUTPUT_STREAM_CLOSE
- See Also:
-
-
Constructor Details
-
DefaultX4OReader
-
-
Method Details
-
readSession
public X4OLanguageSession readSession(InputStream input, String systemId, URL basePath) throws X4OConnectionException, SAXException, IOException Description copied from interface:X4OReaderSession
Method to parse the xml data.- Parameters:
input
- The inputStream to parse.- Throws:
X4OConnectionException
- Is thrown after x4o exception.SAXException
- Is thrown after sax xml exception.IOException
- Is thrown after io exception.
-
addELBeanInstance
-
read
Parses the input stream as a X4O document. -
releaseSession
- Throws:
X4OPhaseException
-