public class ROutputParser extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DocumentBuilder |
builder |
protected Document |
document |
protected DocumentBuilderFactory |
factory |
protected File |
XMLFile |
| Constructor and Description |
|---|
ROutputParser() |
ROutputParser(File XMLFile) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
getAsDoubleArray(String name) |
double[][] |
getAsDoubleMatrix(String name) |
double[][] |
getAsDoubleMatrix(String name,
int n,
int m) |
float[] |
getAsFloatArray(String name) |
int[] |
getAsIntArray(String name) |
boolean[] |
getAsLogicalArray(String name) |
long[] |
getAsLongArray(String name) |
String[] |
getAsStringArray(String name) |
int[] |
getDimensions(String name) |
Document |
getDocument() |
ArrayList<String> |
getNames() |
String |
getType(String variablename) |
NodeList |
getValueNodes(String name) |
File |
getXMLFile() |
String |
getXMLFileAsString() |
void |
parse() |
void |
setDocument(Document document) |
void |
setXMLFile(File XMLFile) |
protected File XMLFile
protected DocumentBuilderFactory factory
protected DocumentBuilder builder
protected Document document
public ROutputParser(File XMLFile)
public ROutputParser()
public Document getDocument()
public void setDocument(Document document)
public File getXMLFile()
public String getXMLFileAsString() throws IOException
IOExceptionpublic void setXMLFile(File XMLFile)
public void parse()
throws ParseException
ParseExceptionpublic int[] getDimensions(String name)
public String[] getAsStringArray(String name) throws ParseException
ParseExceptionpublic double[] getAsDoubleArray(String name) throws ParseException
ParseExceptionpublic float[] getAsFloatArray(String name) throws ParseException
ParseExceptionpublic int[] getAsIntArray(String name) throws ParseException
ParseExceptionpublic long[] getAsLongArray(String name) throws ParseException
ParseExceptionpublic boolean[] getAsLogicalArray(String name) throws ParseException
ParseExceptionpublic double[][] getAsDoubleMatrix(String name, int n, int m) throws ParseException
ParseExceptionpublic double[][] getAsDoubleMatrix(String name) throws ParseException
ParseExceptionCopyright © 2016. All rights reserved.