superwaba.ext.xplat.xml
Class XmlReadableSerial
java.lang.Object
|
+--superwaba.ext.xplat.xml.XmlReadableSerial
- public class XmlReadableSerial
- extends java.lang.Object
- implements XmlReadable
Make an XmlReadable from a SerialPort
Example:
XmlReader rdr = new XmlReader();
rdr.setContentHandler(...);
rdr.parse(new XmlReadableSerial(SerialPort.DEFAULT, 19200));
|
Method Summary |
URI |
getBaseURI()
Get the base URI attached to this XmlReadable |
boolean |
isOk()
Tell if this XmlReadableSerial is functionning properly |
void |
readXml(XmlReader rdr)
Read this XmlReadable through an XmlReader parser. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
XmlReadableSerial
public XmlReadableSerial(int number,
int baudRate,
URI baseURI)
- Constructor
- Parameters:
number - port number.
In Windows, this is the number of the COM port.baudRate - baud ratebaseURI - URI for this XmlReadable
isOk
public boolean isOk()
- Tell if this XmlReadableSerial is functionning properly
- Returns:
- true, if this XmlReadableSerial is functionning properly;
false otherwise.
readXml
public void readXml(XmlReader rdr)
throws SyntaxException
- Description copied from interface: XmlReadable
- Read this XmlReadable through an XmlReader parser.
- Specified by:
- readXml in interface XmlReadable
- Tags copied from interface: XmlReadable
- Parameters:
rdr - the XmlReader that will report the SAX events- Throws:
- SyntaxException -
getBaseURI
public URI getBaseURI()
- Description copied from interface: XmlReadable
- Get the base URI attached to this XmlReadable
- Specified by:
- getBaseURI in interface XmlReadable
- Tags copied from interface: XmlReadable
- Returns:
- the base URI attached to this XmlReadable