FileDocCategorySizeDatePackage
SocketInputStream.javaAPI DocApache Axis 1.41404Sat Apr 22 18:57:28 BST 2006org.apache.axis.transport.http

SocketInputStream

public class SocketInputStream extends FilterInputStream
The ONLY reason for this is so we can clean up sockets quicker/cleaner.

Fields Summary
protected volatile boolean
closed
Socket
socket
Constructors Summary
private SocketInputStream()


      
        super(null);
    
public SocketInputStream(InputStream is, Socket socket)

        super(is);
        this.socket= socket;
    
Methods Summary
public voidclose()

       synchronized(this){
       if(closed) return;
       closed= true;
       }
       in.close();
       in= null;
       socket.close();
       socket= null;