common/src/main/java/HTTPClient/HttpOutputStream.java
/**
     * Associates this stream with a request and the actual output stream.
     * No other methods in this class may be invoked until this method has
     * been invoked by the HTTPConnection.
     *
     * @param req    the request this stream is to be associated with
     * @param os     the underlying output stream to write our data to, or null
     *               if we should write to a ByteArrayOutputStream instead.
     * @param con_to connection timeout to use in sendRequest()
     */
Associates this stream with a request and the actual output stream.
No other methods in this class may be invoked until this method has
been invoked by the HTTPConnection.

@param req    the request this stream is to be associated with
@param os     the underlying output stream to write our data to, or null
if we should write to a ByteArrayOutputStream instead.
@param con_to connection timeout to use in sendRequest()
Associates this stream with a request and the actual output stream . No other methods in this class may be invoked until this method has been invoked by the HTTPConnection . @param req the request this stream is to be associated with @param os the underlying output stream to write our data to or null if we should write to a ByteArrayOutputStream instead . @param con_to connection timeout to use in sendRequest ()
void goAhead(Request req, OutputStream os, int con_to)
    {
	this.req    = req;
	this.os     = os;
	this.con_to = con_to;
	if (os == null)
	    bos = new ByteArrayOutputStream();
	Log.write(Log.CONN, "OutS:  Stream ready for writing");
	if (bos != null)
	    Log.write(Log.CONN, "OutS:  Buffering all data before sending " +
			        "request");
    }
void goAhead ( Request req , OutputStream os , int con_to ) { this . req = req ; this . os = os ; this . con_to = con_to ; if ( os == null ) bos = new ByteArrayOutputStream ( ) ; Log . write ( Log . CONN , "OutS:  Stream ready for writing" ) ; if ( bos != null ) Log . write ( Log . CONN , "OutS:  Buffering all data before sending " + "request" ) ; }
Associates this stream with a request and the actual output stream.
Associates this stream with a request and the actual output stream .