hudson.remoting
Class SocketInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by java.io.FilterInputStream
          extended by 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

Field Summary
 
Fields inherited from class java.io.FilterInputStream
in
 
Constructor Summary
SocketInputStream(java.net.Socket socket)
           
 
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
 

Constructor Detail

SocketInputStream

public SocketInputStream(java.net.Socket socket)
                  throws java.io.IOException
Throws:
java.io.IOException
Method Detail

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.