public interface X4OReader<T> extends X4OConnection
| Modifier and Type | Method and Description |
|---|---|
void |
addELBeanInstance(String name,
Object bean)
Adds an bean instance to the el context.
|
T |
read(InputStream input,
String systemId,
URL basePath)
Method to parse the xml data.
|
T |
readFile(File file)
Reads the file and parses it as an InputStream.
|
T |
readFile(String fileName)
Reads the file fileName and parses it as an InputStream.
|
T |
readResource(String resourceName)
Parses an resource locaction.
|
T |
readString(String xmlString)
Converts a String to a InputStream to is can me parsed by SAX.
|
T |
readUrl(URL url)
Fetched the data direct from remote url to a InputStream to is can me parsed by SAX.
|
getProperty, getPropertyKeySet, setPropertyvoid addELBeanInstance(String name, Object bean)
name - The el name for the bean.bean - The bean to add to the el context.T read(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.T readFile(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.X4OReaderContext.readContext(java.io.InputStream,java.lang.String,java.net.URL)T readFile(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.X4OReaderContext.readContext(java.io.InputStream,java.lang.String,java.net.URL)T readResource(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.X4OReaderContext.readContext(java.io.InputStream,java.lang.String,java.net.URL)T readString(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.X4OReaderContext.readContext(java.io.InputStream,java.lang.String,java.net.URL)T readUrl(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.X4OReaderContext.readContext(java.io.InputStream,java.lang.String,java.net.URL)Copyright © 2004-2013 X4O. All Rights Reserved.