public class SocketInputStream extends FilterInputStream
InputStream connected to socket.
Unlike plain Socket.getInputStream(), closing the stream
does not close the entire socket, and instead it merely partial-close
a socket in the direction.
in| Constructor and Description |
|---|
SocketInputStream(Socket socket)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
available, mark, markSupported, read, read, read, reset, skip@Deprecated public SocketInputStream(Socket socket) throws IOException
SocketChannelStream.in(Socket)IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class FilterInputStreamIOExceptionCopyright © 2004–2018. All rights reserved.