Searched refs:expectedBytesStream (Results 1 – 2 of 2) sorted by relevance
34 private final InputStream expectedBytesStream; field in MatchingOutputStream47 public MatchingOutputStream(InputStream expectedBytesStream, int matchBufferSize) { in MatchingOutputStream() argument51 this.expectedBytesStream = expectedBytesStream; in MatchingOutputStream()57 int expected = expectedBytesStream.read(); in write()76 int numReadThisLoop = expectedBytesStream.read(buffer, 0, maxToRead); in write()91 expectedBytesStream.close(); in close()100 if (expectedBytesStream.read() != -1) { in expectEof()
492 ByteArrayOutputStream expectedBytesStream = new ByteArrayOutputStream();495 expectedBytesStream.write(2);496 expectedBytesStream.write(substr.getBytes(Internal.UTF_8));498 final byte[] expectedBytes = expectedBytesStream.toByteArray();