public abstract class AbstractX4OReaderContext<T> extends AbstractX4OConnection implements X4OReaderContext<T>
Constructor and Description |
---|
AbstractX4OReaderContext(X4OLanguageContext languageContext) |
Modifier and Type | Method and Description |
---|---|
X4OLanguageContext |
readFileContext(File file)
Reads the file and reads it as an InputStream.
|
X4OLanguageContext |
readFileContext(String fileName)
Reads the file fileName and reads it as an InputStream.
|
X4OLanguageContext |
readResourceContext(String resourceName)
reads an resource locaction.
|
X4OLanguageContext |
readStringContext(String xmlString)
Converts a String to a InputStream to is can me read by SAX.
|
X4OLanguageContext |
readUrlContext(URL url)
Fetched the data direct from remote url to a InputStream to is can me readd by SAX.
|
getLanguageContext, getProperty, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readContext, releaseContext
addELBeanInstance, read, readFile, readFile, readResource, readString, readUrl
getProperty, getPropertyKeySet, setProperty
public AbstractX4OReaderContext(X4OLanguageContext languageContext)
public X4OLanguageContext readFileContext(String fileName) throws X4OConnectionException, SAXException, IOException, FileNotFoundException
readFileContext
in interface X4OReaderContext<T>
fileName
- The file name to read.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.X4OReaderContext.readContext(java.io.InputStream,java.lang.String,java.net.URL)
public X4OLanguageContext readFileContext(File file) throws X4OConnectionException, SAXException, IOException, FileNotFoundException
readFileContext
in interface X4OReaderContext<T>
file
- The file to read.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.X4OReaderContext.readContext(java.io.InputStream,java.lang.String,java.net.URL)
public X4OLanguageContext readResourceContext(String resourceName) throws X4OConnectionException, SAXException, IOException
readResourceContext
in interface X4OReaderContext<T>
resourceName
- The resource to readr.X4OConnectionException
- Is thrown after x4o exception.SAXException
- Is thrown after sax xml exception.IOException
- Is thrown after io exception.X4OReaderContext.readContext(java.io.InputStream,java.lang.String,java.net.URL)
public X4OLanguageContext readStringContext(String xmlString) throws X4OConnectionException, SAXException, IOException
readStringContext
in interface X4OReaderContext<T>
xmlString
- The xml as (UTF-8) String to read.X4OConnectionException
- Is thrown after x4o exception.SAXException
- Is thrown after sax xml exception.IOException
- Is thrown after io exception.X4OReaderContext.readContext(java.io.InputStream,java.lang.String,java.net.URL)
public X4OLanguageContext readUrlContext(URL url) throws X4OConnectionException, SAXException, IOException
readUrlContext
in interface X4OReaderContext<T>
url
- The url to read.X4OConnectionException
- Is thrown after x4o exception.SAXException
- Is thrown after sax xml exception.IOException
- Is thrown after io exception.X4OReaderContext.readContext(java.io.InputStream,java.lang.String,java.net.URL)
Copyright © 2004-2013 X4O. All Rights Reserved.