Package totalcross.io.device.bluetooth
Class SerialPortServer
- java.lang.Object
-
- totalcross.io.StreamConnectionNotifier
-
- totalcross.io.device.bluetooth.SerialPortServer
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
public class SerialPortServer extends StreamConnectionNotifier
-
-
Constructor Summary
Constructors Constructor Description SerialPortServer(java.lang.String uuid, java.lang.String[] params)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Streamaccept()Returns a Stream that represents a server side connection.voidclose()Closes this I/O connection, releasing any associated resources.protected voidfinalize()
-
-
-
Constructor Detail
-
SerialPortServer
public SerialPortServer(java.lang.String uuid, java.lang.String[] params) throws IOException- Throws:
IOException
-
-
Method Detail
-
accept
public Stream accept() throws IOException
Description copied from class:StreamConnectionNotifierReturns a Stream that represents a server side connection.- Specified by:
acceptin classStreamConnectionNotifier- Returns:
- A stream to communicate with a client.
- Throws:
IOException- If an I/O error occurs.
-
close
public void close() throws IOExceptionCloses this I/O connection, releasing any associated resources. Once closed a connection is no longer valid.- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
IOException- If an I/O error occurs.
-
finalize
protected void finalize()
- Overrides:
finalizein classjava.lang.Object
-
-