public abstract class AbstractXMLParser extends Object
Constructor and Description |
---|
AbstractXMLParser() |
Modifier and Type | Method and Description |
---|---|
abstract void |
parse(InputStream input,
String systemId,
URL basePath)
Method to parse the xml data.
|
void |
parseFile(File file)
Reads the file and parses it as an InputStream.
|
void |
parseFile(String fileName)
Reads the file fileName and parses it as an InputStream.
|
void |
parseResource(String resourceName)
Parses an resource locaction.
|
void |
parseUrl(URL url)
Fetched the data direct from remote url to a InputStream to is can me parsed by SAX.
|
void |
parseXml(String xmlString)
Converts a String to a InputStream to is can me parsed by SAX.
|
public AbstractXMLParser()
public abstract void parse(InputStream input, String systemId, URL basePath) throws ParserConfigurationException, SAXException, IOException
input
- The inputStream to parse.ParserConfigurationException
SAXException
IOException
public void parseFile(String fileName) throws ParserConfigurationException, FileNotFoundException, SecurityException, NullPointerException, SAXException, IOException
fileName
- The file name to parse.ParserConfigurationException
FileNotFoundException
SecurityException
NullPointerException
SAXException
IOException
parse(java.io.InputStream,java.lang.String,java.net.URL)
public void parseFile(File file) throws ParserConfigurationException, FileNotFoundException, SecurityException, NullPointerException, SAXException, IOException
file
- The file to parse.ParserConfigurationException
FileNotFoundException
SecurityException
NullPointerException
SAXException
IOException
parse(java.io.InputStream,java.lang.String,java.net.URL)
public void parseResource(String resourceName) throws ParserConfigurationException, FileNotFoundException, SecurityException, NullPointerException, SAXException, IOException
resourceName
- The resource to parser.ParserConfigurationException
FileNotFoundException
SecurityException
NullPointerException
SAXException
IOException
public void parseXml(String xmlString) throws ParserConfigurationException, SAXException, IOException, NullPointerException
xmlString
- The xml as String to parse.ParserConfigurationException
SAXException
IOException
NullPointerException
parse(java.io.InputStream,java.lang.String,java.net.URL)
public void parseUrl(URL url) throws ParserConfigurationException, SAXException, IOException, NullPointerException
url
- The url to parse.ParserConfigurationException
SAXException
IOException
NullPointerException
parse(java.io.InputStream,java.lang.String,java.net.URL)
Copyright © 2004-2012 X4O. All Rights Reserved.