|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.manplato.Transport.SLPTransportInterface | +--com.ibm.manplato.Transport.IrDATransport
Infrared Socket API Transport. This class provides a bridge between IrDA Socket API and the SLP Protocol class.
Fields inherited from class com.ibm.manplato.Transport.SLPTransportInterface |
portName |
Constructor Summary | |
IrDATransport()
Create a new instance of the IrDATransport. |
Method Summary | |
void |
close()
Closes both the socket and the server socket if it is open. |
protected void |
finalize()
Finalizes this object by closing it's connection. |
void |
flush()
Flushes the input buffer of any remaining data. |
static java.lang.String |
getName()
Returns the name of this Transport Interface. |
void |
open()
Opens a connection to the IrDA Socket Library. |
byte |
readByte()
Read a single byte from the IrDA socket. |
void |
setSpeed(int speed)
This is a null implementation, because speed negotiation is not supported by IrDA Socket Library. |
void |
writeBytes(byte[] data)
Write an array of bytes to the IrDA socket. |
Methods inherited from class com.ibm.manplato.Transport.SLPTransportInterface |
getPortNames, getSelectedPortName |
Methods inherited from class java.lang.Object |
|
Constructor Detail |
public IrDATransport()
Method Detail |
public void close() throws java.lang.Exception
close
in class SLPTransportInterface
java.lang.Exception
- throws any required exception.protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
public void flush() throws java.io.IOException
flush
in class SLPTransportInterface
thrown
- when a problem occurs with flushing the stream.public static java.lang.String getName()
public void open() throws java.lang.Exception
open
in class SLPTransportInterface
java.lang.Exception
- any exception the underlying code may throw.public byte readByte()
readByte
in class SLPTransportInterface
public void setSpeed(int speed) throws java.lang.Exception
setSpeed
in class SLPTransportInterface
speed
- - The speed to set the transport to.java.lang.Exception
- any exception the underlying code may throw.public void writeBytes(byte[] data)
writeBytes
in class SLPTransportInterface
data
- the bytes to be written to the underlying stream.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |