edu.unh.sdb.datasource
Class XFDLReader

java.lang.Object
  extended by edu.unh.sdb.common.XMLReader
      extended by edu.unh.sdb.datasource.XFDLReader

public class XFDLReader
extends XMLReader


Field Summary
 
Fields inherited from class edu.unh.sdb.common.XMLReader
doc, inputFileName, keyElement, parser, verbose
 
Constructor Summary
XFDLReader(java.lang.String infile)
          Create an XFDLReader for the file designated by the argument
XFDLReader(java.lang.String infile, boolean v)
          XML version of a File Description Language Reader.
 
Method Summary
 AxisOrdering getAxisOrdering()
          Returns the Axis Ordering object.
 java.nio.ByteOrder getByteOrder()
           
 FDLDescriptor getFDLDescriptor()
          returns an FDLDescriptor object containing all of the files attributes
 int getFieldLayout()
           
 long getFileOffset()
           
static void main(java.lang.String[] argv)
          main method used for testing the class
protected  boolean processDoc()
          process the main document in the xml file
 void setAxisOrdering(AxisOrdering ao)
          Sets the Axis Ordering object
protected  void setDefaults()
          Instantiates the FDLDescriptor object to hold new parser info
 
Methods inherited from class edu.unh.sdb.common.XMLReader
makeChildrenFloat, makeChildrenInteger, makeChildrenText, makeChildrenText1, parse, processArrayOfInt, setInputFileName, start, sToF, sToi, sToI, vectorToFloatArray, vectorToIntArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XFDLReader

public XFDLReader(java.lang.String infile)
Create an XFDLReader for the file designated by the argument


XFDLReader

public XFDLReader(java.lang.String infile,
                  boolean v)
XML version of a File Description Language Reader. Takes an argument name of a file or URL as a String and a boolean to turn on/off verbose mode for debugging

Method Detail

setDefaults

protected void setDefaults()
Instantiates the FDLDescriptor object to hold new parser info

Overrides:
setDefaults in class XMLReader

main

public static void main(java.lang.String[] argv)
main method used for testing the class


processDoc

protected boolean processDoc()
Description copied from class: XMLReader
process the main document in the xml file

Specified by:
processDoc in class XMLReader

getFDLDescriptor

public FDLDescriptor getFDLDescriptor()
returns an FDLDescriptor object containing all of the files attributes


setAxisOrdering

public void setAxisOrdering(AxisOrdering ao)
Sets the Axis Ordering object


getAxisOrdering

public AxisOrdering getAxisOrdering()
Returns the Axis Ordering object. If no axis axisOrdering has been requested the default order of [0,1, n-1] will be returned.


getFileOffset

public long getFileOffset()

getFieldLayout

public int getFieldLayout()

getByteOrder

public java.nio.ByteOrder getByteOrder()