public abstract class XMLReader
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.w3c.dom.Document |
doc |
protected java.lang.String |
inputFileName
the file/url to be parsed and processed
|
protected java.lang.String |
keyElement
the key element to be processed
|
protected org.apache.xerces.parsers.DOMParser |
parser
the parsing object
|
protected boolean |
verbose
flag to set verbose on/off
|
Constructor and Description |
---|
XMLReader(java.lang.String inf)
Takes an argument name of a file or URL as a String
|
XMLReader(java.lang.String inf,
boolean v)
Takes an argument name of a file or URL as a String and verbose indicator
|
Modifier and Type | Method and Description |
---|---|
protected static java.lang.Float |
makeChildrenFloat(org.w3c.dom.Node node)
converts a node from the XML parsed tree into a Float object
|
protected static java.lang.Integer |
makeChildrenInteger(org.w3c.dom.Node node)
processes a child node from the XML parsed tree int an Integer object
|
protected static java.lang.String |
makeChildrenText(org.w3c.dom.Node node)
converts a node from the XML parsed tree into a String
|
protected static java.lang.String |
makeChildrenText1(org.w3c.dom.Node node,
java.lang.StringBuffer buffer)
recursive method to support makeChildrenText(Node node) method
|
protected void |
parse()
instantiates the main parser
|
int[] |
processArrayOfInt(java.lang.String axisString) |
protected abstract boolean |
processDoc()
process the main document in the xml file
|
protected void |
setDefaults()
Sets all pending values to null and sets the join flag to FALSE
|
protected void |
setInputFileName(java.lang.String inf)
sets the input file name to the string argument passed
|
protected void |
start(java.lang.String inf,
boolean v)
Sets the initial values and calls the parser
|
protected static java.lang.Float |
sToF(java.lang.String s)
converts a string to a Float object
|
protected static int |
sToi(java.lang.String s)
converts a string to an integer
|
protected static java.lang.Integer |
sToI(java.lang.String s)
converts a string to and Integer object
|
protected static float[] |
vectorToFloatArray(java.util.Vector v)
converts a vector to an array of floats and defaults to a 1 item array of 0 if
vector is empty
|
protected static int[] |
vectorToIntArray(java.util.ArrayList v)
converts a vector to an array of integers
|
protected static int[] |
vectorToIntArray(java.util.Vector v)
converts a vector to an array of integers
|
protected java.lang.String inputFileName
protected org.apache.xerces.parsers.DOMParser parser
protected java.lang.String keyElement
protected boolean verbose
protected org.w3c.dom.Document doc
public XMLReader(java.lang.String inf, boolean v)
public XMLReader(java.lang.String inf)
protected void start(java.lang.String inf, boolean v)
protected void setInputFileName(java.lang.String inf)
protected void setDefaults()
protected abstract boolean processDoc()
protected static java.lang.Integer sToI(java.lang.String s)
protected static int sToi(java.lang.String s)
protected static int[] vectorToIntArray(java.util.Vector v)
protected static int[] vectorToIntArray(java.util.ArrayList v)
protected void parse()
protected static java.lang.Integer makeChildrenInteger(org.w3c.dom.Node node)
protected static java.lang.Float sToF(java.lang.String s)
protected static float[] vectorToFloatArray(java.util.Vector v)
protected static java.lang.Float makeChildrenFloat(org.w3c.dom.Node node)
protected static java.lang.String makeChildrenText(org.w3c.dom.Node node)
protected static java.lang.String makeChildrenText1(org.w3c.dom.Node node, java.lang.StringBuffer buffer)
public int[] processArrayOfInt(java.lang.String axisString)