public final class SCXMLReader extends Object
The SCXMLReader provides the ability to read a SCXML document into the Java object model provided in the model package.
See latest version of the SCXML Working Draft for more details.
NOTE: The SCXMLReader assumes that the SCXML document to be parsed is well-formed and correct. If that assumption does not hold, any subsequent behavior is undefined.
Modifier and Type | Class and Description |
---|---|
static class |
SCXMLReader.Configuration
Configuration for the
SCXMLReader . |
Modifier and Type | Method and Description |
---|---|
static SCXML |
read(InputStream scxmlStream)
Parse the SCXML document supplied by the given
InputStream . |
static SCXML |
read(InputStream scxmlStream,
SCXMLReader.Configuration configuration)
Parse the SCXML document supplied by the given
InputStream with the given SCXMLReader.Configuration . |
static SCXML |
read(Reader scxmlReader)
Parse the SCXML document supplied by the given
Reader . |
static SCXML |
read(Reader scxmlReader,
SCXMLReader.Configuration configuration)
Parse the SCXML document supplied by the given
Reader with the given SCXMLReader.Configuration . |
static SCXML |
read(Source scxmlSource)
Parse the SCXML document supplied by the given
Source . |
static SCXML |
read(Source scxmlSource,
SCXMLReader.Configuration configuration)
Parse the SCXML document supplied by the given
Source with the given SCXMLReader.Configuration . |
static SCXML |
read(String scxmlPath)
Parse the SCXML document at the supplied path.
|
static SCXML |
read(String scxmlPath,
SCXMLReader.Configuration configuration)
Parse the SCXML document at the supplied path with the given
SCXMLReader.Configuration . |
static SCXML |
read(URL scxmlURL)
Parse the SCXML document at the supplied
URL . |
static SCXML |
read(URL scxmlURL,
SCXMLReader.Configuration configuration)
Parse the SCXML document at the supplied
URL with the given SCXMLReader.Configuration . |
public static SCXML read(String scxmlPath) throws IOException, ModelException, XMLStreamException
scxmlPath
- The real path to the SCXML document.IOException
- An IO error during parsing.ModelException
- The Commons SCXML object model is incomplete or inconsistent (includes
errors in the SCXML document that may not be identified by the schema).XMLStreamException
- An exception processing the underlying XMLStreamReader
.public static SCXML read(String scxmlPath, SCXMLReader.Configuration configuration) throws IOException, ModelException, XMLStreamException
SCXMLReader.Configuration
.scxmlPath
- The real path to the SCXML document.configuration
- The SCXMLReader.Configuration
to use when parsing the SCXML document.IOException
- An IO error during parsing.ModelException
- The Commons SCXML object model is incomplete or inconsistent (includes
errors in the SCXML document that may not be identified by the schema).XMLStreamException
- An exception processing the underlying XMLStreamReader
.public static SCXML read(URL scxmlURL) throws IOException, ModelException, XMLStreamException
URL
.scxmlURL
- The SCXML document URL
to parse.IOException
- An IO error during parsing.ModelException
- The Commons SCXML object model is incomplete or inconsistent (includes
errors in the SCXML document that may not be identified by the schema).XMLStreamException
- An exception processing the underlying XMLStreamReader
.public static SCXML read(URL scxmlURL, SCXMLReader.Configuration configuration) throws IOException, ModelException, XMLStreamException
URL
with the given SCXMLReader.Configuration
.scxmlURL
- The SCXML document URL
to parse.configuration
- The SCXMLReader.Configuration
to use when parsing the SCXML document.IOException
- An IO error during parsing.ModelException
- The Commons SCXML object model is incomplete or inconsistent (includes
errors in the SCXML document that may not be identified by the schema).XMLStreamException
- An exception processing the underlying XMLStreamReader
.public static SCXML read(InputStream scxmlStream) throws IOException, ModelException, XMLStreamException
InputStream
.scxmlStream
- The InputStream
supplying the SCXML document to parse.IOException
- An IO error during parsing.ModelException
- The Commons SCXML object model is incomplete or inconsistent (includes
errors in the SCXML document that may not be identified by the schema).XMLStreamException
- An exception processing the underlying XMLStreamReader
.public static SCXML read(InputStream scxmlStream, SCXMLReader.Configuration configuration) throws IOException, ModelException, XMLStreamException
InputStream
with the given SCXMLReader.Configuration
.scxmlStream
- The InputStream
supplying the SCXML document to parse.configuration
- The SCXMLReader.Configuration
to use when parsing the SCXML document.IOException
- An IO error during parsing.ModelException
- The Commons SCXML object model is incomplete or inconsistent (includes
errors in the SCXML document that may not be identified by the schema).XMLStreamException
- An exception processing the underlying XMLStreamReader
.public static SCXML read(Reader scxmlReader) throws IOException, ModelException, XMLStreamException
Reader
.scxmlReader
- The Reader
supplying the SCXML document to parse.IOException
- An IO error during parsing.ModelException
- The Commons SCXML object model is incomplete or inconsistent (includes
errors in the SCXML document that may not be identified by the schema).XMLStreamException
- An exception processing the underlying XMLStreamReader
.public static SCXML read(Reader scxmlReader, SCXMLReader.Configuration configuration) throws IOException, ModelException, XMLStreamException
Reader
with the given SCXMLReader.Configuration
.scxmlReader
- The Reader
supplying the SCXML document to parse.configuration
- The SCXMLReader.Configuration
to use when parsing the SCXML document.IOException
- An IO error during parsing.ModelException
- The Commons SCXML object model is incomplete or inconsistent (includes
errors in the SCXML document that may not be identified by the schema).XMLStreamException
- An exception processing the underlying XMLStreamReader
.public static SCXML read(Source scxmlSource) throws IOException, ModelException, XMLStreamException
Source
.scxmlSource
- The Source
supplying the SCXML document to parse.IOException
- An IO error during parsing.ModelException
- The Commons SCXML object model is incomplete or inconsistent (includes
errors in the SCXML document that may not be identified by the schema).XMLStreamException
- An exception processing the underlying XMLStreamReader
.public static SCXML read(Source scxmlSource, SCXMLReader.Configuration configuration) throws IOException, ModelException, XMLStreamException
Source
with the given SCXMLReader.Configuration
.scxmlSource
- The Source
supplying the SCXML document to parse.configuration
- The SCXMLReader.Configuration
to use when parsing the SCXML document.IOException
- An IO error during parsing.ModelException
- The Commons SCXML object model is incomplete or inconsistent (includes
errors in the SCXML document that may not be identified by the schema).XMLStreamException
- An exception processing the underlying XMLStreamReader
.Copyright © 2005–2015 The Apache Software Foundation. All rights reserved.