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
IOException
public static InputStream in(SocketChannel ch) throws IOException
IOException
public static OutputStream out(Socket s) throws IOException
IOException
public static OutputStream out(SocketChannel ch) throws IOException
IOException
Copyright © 2014. All rights reserved.