org.autoplot.spase.XMLTypeCheck
Checks to see if this sort of XML file is handled. This works with a SAX
parser, and looks at the tags to see if a file appears to be of a given type.
XMLTypeCheck( )
TYPE_HELM
TYPE_SPASE
TYPE_VOTABLE
calculateType
calculateType( java.io.File f ) → Object
use a sax parser to get the type. Return
TYPE_VOTABLE, TYPE_HELM, TYPE_SPASE
Parameters
f - a File
Returns:
an Object
[search for examples]
[view on GitHub]
[view on old javadoc]
startDocument
startDocument( ) → void
initialize the state to STATE_OPEN.
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]
startElement
startElement( String uri, String localName, String qName, org.xml.sax.Attributes attributes ) → void
As elements come in, we go through the state transitions to keep track of
whether we are reading FIELDS, Rows of the dataset, Individual columns, etc.
Parameters
uri - a String
localName - a String
qName - a String
attributes - an Attributes
Returns:
void (returns nothing)
[search for examples]
[view on GitHub]
[view on old javadoc]