Package totalcross.io
Class StreamConnectionNotifier
- java.lang.Object
-
- totalcross.io.StreamConnectionNotifier
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
SerialPortServer
public abstract class StreamConnectionNotifier extends java.lang.ObjectBase class for connection notifiers.
-
-
Constructor Summary
Constructors Constructor Description StreamConnectionNotifier()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract Streamaccept()Returns a Stream that represents a server side connection.abstract voidclose()Closes this I/O connection, releasing any associated resources.
-
-
-
Method Detail
-
accept
public abstract Stream accept() throws IOException
Returns a Stream that represents a server side connection.- Returns:
- A stream to communicate with a client.
- Throws:
IOException- If an I/O error occurs.
-
close
public abstract 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.
-
-