Unlike plain {@link Socket#getInputStream()}, closing the stream does not close the entire socket, and instead it merely partial-close a socket in the direction.
@author Kohsuke Kawaguchi
This class wraps an input stream, storing a reference to its originating socket. When the stream is closed, it will also close the socket immediately afterward. This class is useful for situations where you are dealing with a stream originating from a socket, but do not have a reference to the socket, and want to make sure it closes when the stream closes.
@author Daniel F. Savarese
@see SocketOutputStream
This implements an input stream that can have a timeout while reading. This sets non-blocking flag on the socket channel. So after create this object, read() on {@link Socket#getInputStream()} and write() on {@link Socket#getOutputStream()} for the associated socket will throw IllegalBlockingModeException. Please use {@link SocketOutputStream} for writing.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.