hudson.remoting
Class SocketInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
hudson.remoting.SocketInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class SocketInputStream
- extends java.io.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.
- Author:
- Kohsuke Kawaguchi
Fields inherited from class java.io.FilterInputStream |
in |
Method Summary |
void |
close()
|
Methods inherited from class java.io.FilterInputStream |
available, mark, markSupported, read, read, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SocketInputStream
public SocketInputStream(java.net.Socket socket)
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.FilterInputStream
- Throws:
java.io.IOException
Copyright © 2013. All Rights Reserved.