public void bind(LocalSocket socket, HttpParams params) throws IOException { Util.throwIfNull(socket); Util.throwIfNull(params); mSocket = socket; int bufferSize = HttpConnectionParams.getSocketBufferSize(params); mInputBuffer = new LocalSocketSessionInputBuffer(socket, bufferSize, params); init(mInputBuffer, new LocalSocketSessionOutputBuffer(socket, bufferSize, params), params); mOpen = true; }
@DSGenerator( tool_name = "Doppelganger", tool_version = "2.0", generated_on = "2013-12-30 13:01:43.701 -0500", hash_original_method = "05B6F703A6A9BCF9CC38B84399416D78", hash_generated_method = "ED699B1B33A5DAFA902A0EA5D7EBE432") protected void bind(final Socket socket, final HttpParams params) throws IOException { if (socket == null) { throw new IllegalArgumentException("Socket may not be null"); } if (params == null) { throw new IllegalArgumentException("HTTP parameters may not be null"); } this.socket = socket; int buffersize = HttpConnectionParams.getSocketBufferSize(params); init( createSessionInputBuffer(socket, buffersize, params), createSessionOutputBuffer(socket, buffersize, params), params); this.open = true; }