|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsalsa.corpora.xmlparser.CorpusParser
public class CorpusParser
Constructor Summary | |
---|---|
CorpusParser()
Zero-argumented default constructor. |
Method Summary | |
---|---|
Corpus |
parseCorpusFromFile(java.lang.String aFileName)
Parses the XML document and returns the equivalent Corpus . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CorpusParser() throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
- if there is a problem with the parser factory
org.xml.sax.SAXException
- if there is a problem when creating the parserMethod Detail |
---|
public Corpus parseCorpusFromFile(java.lang.String aFileName) throws java.io.IOException, org.xml.sax.SAXException
Corpus
.
It reads only files in the 'utf-8' format.
aFileName
- a String
with the file name to read the XML
document from
java.io.IOException
- if there is a problem when reading the file
org.xml.sax.SAXException
- if there is a problem when parsing the XML document
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |