public interface X4OReaderContext<T> extends X4OReader<T>
Modifier and Type | Method and Description |
---|---|
X4OLanguageContext |
readContext(InputStream input,
String systemId,
URL basePath)
Method to parse the xml data.
|
X4OLanguageContext |
readFileContext(File file)
Reads the file and parses it as an InputStream.
|
X4OLanguageContext |
readFileContext(String fileName)
Reads the file fileName and parses it as an InputStream.
|
X4OLanguageContext |
readResourceContext(String resourceName)
Parses an resource locaction.
|
X4OLanguageContext |
readStringContext(String xmlString)
Converts a String to a InputStream to is can me parsed by SAX.
|
X4OLanguageContext |
readUrlContext(URL url)
Fetched the data direct from remote url to a InputStream to is can me parsed by SAX.
|
void |
releaseContext(X4OLanguageContext context) |
addELBeanInstance, read, readFile, readFile, readResource, readString, readUrl
getProperty, getPropertyKeySet, setProperty
void releaseContext(X4OLanguageContext context) throws X4OPhaseException
X4OPhaseException
X4OLanguageContext readContext(InputStream input, String systemId, URL basePath) throws X4OConnectionException, SAXException, IOException
input
- The inputStream to parse.X4OConnectionException
- Is thrown after x4o exception.SAXException
- Is thrown after sax xml exception.IOException
- Is thrown after io exception.X4OLanguageContext readFileContext(String fileName) throws X4OConnectionException, SAXException, IOException, FileNotFoundException
fileName
- The file name to parse.FileNotFoundException
- Is thrown is file is not found.X4OConnectionException
- Is thrown after x4o exception.SAXException
- Is thrown after sax xml exception.IOException
- Is thrown after io exception.readContext(java.io.InputStream,java.lang.String,java.net.URL)
X4OLanguageContext readFileContext(File file) throws X4OConnectionException, SAXException, IOException, FileNotFoundException
file
- The file to parse.FileNotFoundException
- Is thrown is file is not found.X4OConnectionException
- Is thrown after x4o exception.SAXException
- Is thrown after sax xml exception.IOException
- Is thrown after io exception.readContext(java.io.InputStream,java.lang.String,java.net.URL)
X4OLanguageContext readResourceContext(String resourceName) throws X4OConnectionException, SAXException, IOException
resourceName
- The resource to parser.X4OConnectionException
- Is thrown after x4o exception.SAXException
- Is thrown after sax xml exception.IOException
- Is thrown after io exception.readContext(java.io.InputStream,java.lang.String,java.net.URL)
X4OLanguageContext readStringContext(String xmlString) throws X4OConnectionException, SAXException, IOException
xmlString
- The xml as String to parse.X4OConnectionException
- Is thrown after x4o exception.SAXException
- Is thrown after sax xml exception.IOException
- Is thrown after io exception.readContext(java.io.InputStream,java.lang.String,java.net.URL)
X4OLanguageContext readUrlContext(URL url) throws X4OConnectionException, SAXException, IOException
url
- The url to parse.X4OConnectionException
- Is thrown after x4o exception.SAXException
- Is thrown after sax xml exception.IOException
- Is thrown after io exception.readContext(java.io.InputStream,java.lang.String,java.net.URL)
Copyright © 2004-2013 X4O. All Rights Reserved.