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, setCaseInsensitive
public 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 XmlReadableIOException
public XmlReadablePort(PortConnector port, URI baseURI) throws IOException
port
- The constructed PortConnectorbaseURI
- URI for this XmlReadableIOException
public void readXml(XmlReader rdr) throws SyntaxException, IOException
XmlReadable
readXml
in interface XmlReadable
readXml
in class XmlReadableByteArray
rdr
- the XmlReader that will report the SAX eventsSyntaxException
IOException