Java tutorial
package org.apache.http.impl.io; import java.io.IOException; import org.apache.http.HttpResponse; import org.apache.http.annotation.NotThreadSafe; import org.apache.http.io.SessionOutputBuffer; import org.apache.http.message.LineFormatter; import org.apache.http.params.HttpParams; @NotThreadSafe @Deprecated public class HttpResponseWriter extends AbstractMessageWriter<HttpResponse> { public HttpResponseWriter(SessionOutputBuffer sessionOutputBuffer, LineFormatter lineFormatter, HttpParams httpParams) { super(sessionOutputBuffer, lineFormatter, httpParams); } protected void writeHeadLine(HttpResponse httpResponse) throws IOException { this.lineFormatter.formatStatusLine(this.lineBuf, httpResponse.getStatusLine()); this.sessionBuffer.writeLine(this.lineBuf); } }