FileDocCategorySizeDatePackage
SocketOutputBuffer.javaAPI DocAndroid 1.5 API2615Wed May 06 22:41:10 BST 2009org.apache.http.impl.io

SocketOutputBuffer

public class SocketOutputBuffer extends AbstractSessionOutputBuffer
{@link Socket} bound session output buffer.
author
Oleg Kalnichevski
version
$Revision: 560358 $
since
4.0

Fields Summary
Constructors Summary
public SocketOutputBuffer(Socket socket, int buffersize, HttpParams params)

        super();
        if (socket == null) {
            throw new IllegalArgumentException("Socket may not be null");
        }
        if (buffersize < 0) {
            buffersize = socket.getReceiveBufferSize();
// BEGIN android-changed
            // Workaround for http://b/issue?id=1083103.
            if (buffersize > 8096) {
                buffersize = 8096;
            }
// END android-changed
        }
        if (buffersize < 1024) {
            buffersize = 1024;
        }

// BEGIN android-changed
        socket.setSendBufferSize(buffersize * 3);
// END andrdoid-changed

        init(socket.getOutputStream(), buffersize, params);
    
Methods Summary