public class SocketInputStream extends FilterInputStream
|Constructor and Description|
Creates a SocketInputStream instance wrapping an input stream and storing a reference to a socket that should be closed on closing the stream.
|Modifier and Type||Method and Description|
Closes the stream and immediately afterward closes the referenced socket.
available, mark, markSupported, read, read, read, reset, skip
public SocketInputStream(Socket socket, InputStream stream)
socket- The socket to close on closing the stream.
stream- The input stream to wrap.
public void close() throws IOException
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.