Searched refs:bytesOut (Results 1 – 9 of 9) sorted by relevance
184 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); in setChunkedBody() local188 bytesOut.write(Integer.toHexString(chunkSize).getBytes(ASCII)); in setChunkedBody()189 bytesOut.write("\r\n".getBytes(ASCII)); in setChunkedBody()190 bytesOut.write(body, pos, chunkSize); in setChunkedBody()191 bytesOut.write("\r\n".getBytes(ASCII)); in setChunkedBody()194 bytesOut.write("0\r\n\r\n".getBytes(ASCII)); // last chunk + empty trailer + crlf in setChunkedBody()196 this.body = bytesOut.toByteArray(); in setChunkedBody()
40 private final ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); field in MockSpdyPeer41 private final SpdyWriter spdyWriter = new SpdyWriter(bytesOut);54 outFrames.add(new OutFrame(frameCount++, bytesOut.size(), Integer.MAX_VALUE)); in sendFrame()64 outFrames.add(new OutFrame(frameCount++, bytesOut.size(), truncateToLength)); in sendTruncatedFrame()100 byte[] outBytes = bytesOut.toByteArray(); in readAndWriteFrames()
288 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); in gzip() local289 OutputStream gzippedOut = new GZIPOutputStream(bytesOut); in gzip()292 return bytesOut.toByteArray(); in gzip()
1009 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();1012 bytesOut.write(buffer, 0, count);1014 String actual = bytesOut.toString("UTF-8");
89 return WrapperTester.this.decode(delegate.bytesOut.toByteArray()); in getBytes()186 private final ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); field in WrapperTester.ClosableByteArrayOutputStream197 bytesOut.write(oneByte); in write()
66 MaybeUInt64 bytesOut = 0; variable185 bytesOut++; in bsPutBit()229 bytesOut++; in bsClose()
642 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); in contentDisagreesWithChunkedHeader() local643 bytesOut.write(mockResponse.getBody()); in contentDisagreesWithChunkedHeader()644 bytesOut.write("\r\nYOU SHOULD NOT SEE THIS".getBytes("UTF-8")); in contentDisagreesWithChunkedHeader()645 mockResponse.setBody(bytesOut.toByteArray()); in contentDisagreesWithChunkedHeader()2512 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream(); in gzip() local2513 OutputStream gzippedOut = new GZIPOutputStream(bytesOut); in gzip()2516 return bytesOut.toByteArray(); in gzip()
1892 ByteArrayOutputStream bytesOut = new ByteArrayOutputStream();1893 OutputStream gzippedOut = new GZIPOutputStream(bytesOut);1896 return bytesOut.toByteArray();
993 - byte[] bytesOut = baos.toByteArray();995 - if (bytesOut.length > 1000)996 … LOGGER.error("Bytes out > 1000. Equals " + bytesOut.length);998 - p.setData(bytesOut);