public class XmlReadablePort extends XmlReadableByteArray
XmlReader rdr = new XmlReader();
rdr.setContentHandler(...);
rdr.parse(new XmlReadablePort(PortConnector.DEFAULT, 19200));
baseURI, buf| Constructor and Description |
|---|
XmlReadablePort(int number,
int baudRate,
URI baseURI)
Constructor
|
XmlReadablePort(PortConnector port,
URI baseURI)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
readXml(XmlReader rdr)
Read this XmlReadable through an XmlReader parser.
|
getBaseURI, setCaseInsensitivepublic XmlReadablePort(int number,
int baudRate,
URI baseURI)
throws IOException
number - port number. On Windows, this is the number of the COM port.baudRate - baud ratebaseURI - URI for this XmlReadableIOExceptionpublic XmlReadablePort(PortConnector port, URI baseURI) throws IOException
port - The constructed PortConnectorbaseURI - URI for this XmlReadableIOExceptionpublic void readXml(XmlReader rdr) throws SyntaxException, IOException
XmlReadablereadXml in interface XmlReadablereadXml in class XmlReadableByteArrayrdr - the XmlReader that will report the SAX eventsSyntaxExceptionIOException