public class SocketChannelStream extends Object
SocketChannel into InputStream/OutputStream in a way
that avoids deadlock when read/write happens concurrently.| Constructor and Description |
|---|
SocketChannelStream() |
| Modifier and Type | Method and Description |
|---|---|
static InputStream |
in(Socket s) |
static InputStream |
in(SocketChannel ch) |
static OutputStream |
out(Socket s) |
static OutputStream |
out(SocketChannel ch) |
public static InputStream in(Socket s) throws IOException
IOExceptionpublic static InputStream in(SocketChannel ch) throws IOException
IOExceptionpublic static OutputStream out(Socket s) throws IOException
IOExceptionpublic static OutputStream out(SocketChannel ch) throws IOException
IOExceptionCopyright © 2004-2016. All Rights Reserved.