public abstract class AbstractX4OReader<T> extends AbstractX4OReaderContext<T> implements X4OReader<T>
Constructor and Description |
---|
AbstractX4OReader(X4OLanguageContext elementLanguage) |
Modifier and Type | Method and Description |
---|---|
String[] |
getPropertyKeySet() |
T |
read(InputStream input,
String systemId,
URL basePath)
Method to parse the xml data.
|
T |
readFile(File file)
Reads the file and reads it as an InputStream.
|
T |
readFile(String fileName)
Reads the file fileName and reads it as an InputStream.
|
T |
readResource(String resourceName)
reads an resource locaction.
|
T |
readString(String xmlString)
Converts a String to a InputStream to is can me readd by SAX.
|
T |
readUrl(URL url)
Fetched the data direct from remote url to a InputStream to is can me readd by SAX.
|
readFileContext, readFileContext, readResourceContext, readStringContext, readUrlContext
getLanguageContext, getProperty, setProperty
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addELBeanInstance
getProperty, setProperty
readContext, releaseContext
public AbstractX4OReader(X4OLanguageContext elementLanguage)
public String[] getPropertyKeySet()
getPropertyKeySet
in interface X4OConnection
X4OConnection.getPropertyKeySet()
public T read(InputStream input, String systemId, URL basePath) throws X4OConnectionException, SAXException, IOException
X4OReader
read
in interface X4OReader<T>
input
- The inputStream to parse.X4OConnectionException
- Is thrown after x4o exception.SAXException
- Is thrown after sax xml exception.IOException
- Is thrown after io exception.public T readFile(String fileName) throws X4OConnectionException, SAXException, IOException, FileNotFoundException
readFile
in interface X4OReader<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 T readFile(File file) throws X4OConnectionException, SAXException, IOException, FileNotFoundException
readFile
in interface X4OReader<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 T readResource(String resourceName) throws X4OConnectionException, SAXException, IOException
readResource
in interface X4OReader<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 T readString(String xmlString) throws X4OConnectionException, SAXException, IOException
readString
in interface X4OReader<T>
xmlString
- The xml as 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 T readUrl(URL url) throws X4OConnectionException, SAXException, IOException
readUrl
in interface X4OReader<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.