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)
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class FilterInputStream
IOException
Copyright © 2004–2022. All rights reserved.