org.eclipse.hyades.internal.execution.core.file.socket
Interface ISocketChannel
- All Superinterfaces:
- java.nio.channels.Channel, java.io.Closeable, java.nio.channels.ReadableByteChannel, java.nio.channels.WritableByteChannel
- All Known Implementing Classes:
- SocketChannel
public interface ISocketChannel
- extends java.nio.channels.Channel, java.nio.channels.ReadableByteChannel, java.nio.channels.WritableByteChannel
An abstraction above the socket channel to allow a socket channel to be
emulated by taking a readable byte channel and a writeable byte channel and
combining them into a new interface. Socket channel is a class and not an
interface in Java, so this interface is introduced to satisfy our purposes.
The file transfer service will work with this socket channel interface
instead of directing using Java's standard socket channel class.
|
Method Summary |
java.net.Socket |
getSocket()
Returns the underlying socket associated with this channel |
| Methods inherited from interface java.nio.channels.Channel |
close, isOpen |
| Methods inherited from interface java.nio.channels.ReadableByteChannel |
read |
| Methods inherited from interface java.nio.channels.Channel |
close, isOpen |
| Methods inherited from interface java.nio.channels.WritableByteChannel |
write |
| Methods inherited from interface java.nio.channels.Channel |
close, isOpen |
getSocket
java.net.Socket getSocket()
- Returns the underlying socket associated with this channel
- Returns:
- the socket associated with this channel