Package totalcross.xml
Class XmlReadablePort
- java.lang.Object
-
- totalcross.xml.XmlReadableByteArray
-
- totalcross.xml.XmlReadablePort
-
- All Implemented Interfaces:
XmlReadable
public class XmlReadablePort extends XmlReadableByteArray
Make an XmlReadable from a PortConnector Example:XmlReader rdr = new XmlReader(); rdr.setContentHandler(...); rdr.parse(new XmlReadablePort(PortConnector.DEFAULT, 19200));
-
-
Field Summary
-
Fields inherited from class totalcross.xml.XmlReadableByteArray
baseURI, buf
-
-
Constructor Summary
Constructors Constructor Description XmlReadablePort(int number, int baudRate, URI baseURI)ConstructorXmlReadablePort(PortConnector port, URI baseURI)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadXml(XmlReader rdr)Read this XmlReadable through an XmlReader parser.-
Methods inherited from class totalcross.xml.XmlReadableByteArray
getBaseURI, setCaseInsensitive
-
-
-
-
Constructor Detail
-
XmlReadablePort
public XmlReadablePort(int number, int baudRate, URI baseURI) throws IOExceptionConstructor- Parameters:
number- port number. On Windows, this is the number of the COM port.baudRate- baud ratebaseURI- URI for this XmlReadable- Throws:
IOException
-
XmlReadablePort
public XmlReadablePort(PortConnector port, URI baseURI) throws IOException
Constructor- Parameters:
port- The constructed PortConnectorbaseURI- URI for this XmlReadable- Throws:
IOException
-
-
Method Detail
-
readXml
public void readXml(XmlReader rdr) throws SyntaxException, IOException
Description copied from interface:XmlReadableRead this XmlReadable through an XmlReader parser.- Specified by:
readXmlin interfaceXmlReadable- Overrides:
readXmlin classXmlReadableByteArray- Parameters:
rdr- the XmlReader that will report the SAX events- Throws:
SyntaxExceptionIOException
-
-