|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jmatchparser.util.csv.AbstractCSVReader
net.sf.jmatchparser.util.csv.XPathCSVReader
public class XPathCSVReader
Class to read data from an XML file as if it was a CSV (Comma Separated
Value) file, using XPathExpressions for the columns.
| Constructor Summary | |
|---|---|
XPathCSVReader(Document doc,
String rowExpression,
String... columnExpressions)
Create a new XPathCSVReader that reads from the given DOM
document. |
|
XPathCSVReader(Document doc,
XPathExpression rowExpression,
XPathExpression... columnExpressions)
Create a new XPathCSVReader that reads from the given DOM
document. |
|
| Method Summary | |
|---|---|
void |
close()
Close this reader. |
String[] |
read()
Read a row from this XML file. |
| Methods inherited from class net.sf.jmatchparser.util.csv.AbstractCSVReader |
|---|
read, read, writeTo |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XPathCSVReader(Document doc,
String rowExpression,
String... columnExpressions)
throws XPathExpressionException
XPathCSVReader that reads from the given DOM
document. The rowExpression is expected to return a NodeList of
rows, each columnExpression is evaluated on each of the rows to find the
column values.
XPathExpressionException
public XPathCSVReader(Document doc,
XPathExpression rowExpression,
XPathExpression... columnExpressions)
throws XPathExpressionException
XPathCSVReader that reads from the given DOM
document. The rowExpression is expected to return a NodeList of
rows, each columnExpression is evaluated on each of the rows to find the
column values.
XPathExpressionException| Method Detail |
|---|
public void close()
throws IOException
close in class AbstractCSVReaderIOException
public String[] read()
throws IOException
read in class AbstractCSVReaderIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||