public interface IChannel
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the communication channel.
|
java.lang.String |
getID()
Returns the communication channel ID.
|
java.io.InputStream |
getInputStream() |
java.io.OutputStream |
getOutputStream() |
boolean |
isOpen()
Returns the open status of the communication channel.
|
void |
open(int timeout)
Opens the communication channel.
|
java.io.InputStream getInputStream()
throws java.io.IOException
java.io.IOExceptionjava.io.OutputStream getOutputStream()
throws java.io.IOException
java.io.IOExceptionjava.lang.String getID()
boolean isOpen()
void open(int timeout) throws ChannelException
timeout - Default Timeout (in ms) to be used for all
read actions.ChannelException - Thrown for any detected error.void close()
throws ChannelException
ChannelException - Thrown for any detected error.