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>
- Type Parameters:
T- The root element object type.
- 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 Stringstatic final Stringstatic final Stringstatic final SAX3PropertyConfigstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class AbstractX4OConnection
phaseSkip, phaseStopFields inherited from class AbstractX4OConnectionDebug
ABSTRACT_DEBUG_OUTPUT_HANDLER, ABSTRACT_DEBUG_OUTPUT_STREAM, ABSTRACT_DEBUG_OUTPUT_STREAM_CLOSE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddELBeanInstance(String name, Object bean) Adds an bean instance to the el context.protected voidread()Parses the input stream as a X4O document.readSession(InputStream input, String systemId, URL basePath) Method to parse the xml data.voidreleaseSession(X4OLanguageSession context) Methods inherited from class AbstractX4OReader
read, readFile, readFile, readResource, readString, readUrlMethods inherited from class AbstractX4OReaderSession
readFileSession, readFileSession, readResourceSession, readStringSession, readUrlSessionMethods inherited from class AbstractX4OConnection
addPhaseSkip, getLanguage, getProperty, getPropertyKeys, setPhaseStop, setPropertyMethods inherited from class AbstractX4OConnectionDebug
debugException, debugStart, debugStopMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface 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:X4OReaderSessionMethod 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
-