common/src/main/java/HTTPClient/RespInputStream.java
/**
     * closes the stream.
     *
     * @exception if any exception occured on the connection before or
     *            during close.
     */
closes the stream.
@exception if any exception occured on the connection before or
during close.
closes the stream . @exception if any exception occured on the connection before or during close .
public synchronized void close()  throws IOException
    {
	if (!closed)
	{
	    closed = true;
	    if (dont_truncate  &&  (buffer == null  ||  interrupted))
		readAll(resph.resp.timeout);
	    Log.write(Log.DEMUX, "RspIS: User closed stream " + hashCode());
	    demux.closeSocketIfAllStreamsClosed();
	    if (dont_truncate)
	    {
		try
		    { resph.resp.http_resp.invokeTrailerHandlers(false); }
		catch (ModuleException me)
		    { throw new IOException(me.toString()); }
	    }
	}
    }
public synchronized void close ( ) throws IOException { if ( ! closed ) { closed = true ; if ( dont_truncate && ( buffer == null || interrupted ) ) readAll ( resph . resp . timeout ) ; Log . write ( Log . DEMUX , "RspIS: User closed stream " + hashCode ( ) ) ; demux . closeSocketIfAllStreamsClosed ( ) ; if ( dont_truncate ) { try { resph . resp . http_resp . invokeTrailerHandlers ( false ) ; } catch ( ModuleException me ) { throw new IOException ( me . toString ( ) ) ; } } } }
closes the stream.
closes the stream .