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