com.dalsemi.onewire.application.tag
Class TAGParser
java.lang.Object
|
+--com.dalsemi.onewire.application.tag.TAGParser
- public class TAGParser
- extends Object
The tag parser parses tagging information.
Method Summary |
Vector |
getBranches()
Returns the vector of Branch TaggedDevice objects described in the TAG file. |
Vector |
getOWPaths()
Returns the vector of OWPath objects discovered through parsing
the XML file. |
Vector |
parse(InputStream in)
Returns the vector of TaggedDevice objects described in the TAG file. |
TAGParser
public TAGParser(DSPortAdapter adapter)
- Construct the tag parser.
- Parameters:
adapter
- What port adapter will serve the devices created.
parse
public Vector parse(InputStream in)
throws org.xml.sax.SAXException,
IOException
- Returns the vector of TaggedDevice objects described in the TAG file.
- Parameters:
in
- The XML document to parse.- Returns:
- Vector of TaggedDevice objects.
- Throws:
org.xml.sax.SAXException
- If a parse error occurs parsing in.IOException
- If an I/O error occurs while reading in.
getBranches
public Vector getBranches()
- Returns the vector of Branch TaggedDevice objects described in the TAG file.
The XML should already be parsed before calling this method.
- Parameters:
in
- The XML document to parse.- Returns:
- Vector of Branch TaggedDevice objects.
getOWPaths
public Vector getOWPaths()
- Returns the vector of OWPath objects discovered through parsing
the XML file. The XML file should already be parsed before calling
this method.
- Parameters:
no
- parameters.- Returns:
- Vector of OWPath objects.