test_class.declarator: writer
test_class.original_string: RedisStreamWriter writer;
test_class.type: RedisStreamWriter
test_class.var_name: writer
test_class.declarator: outputStream
test_class.modifier: @Mock
    private
test_class.original_string: @Mock
    private OutputStream outputStream;
test_class.type: OutputStream
test_class.var_name: outputStream
test_class.file: imcache-redis/src/test/java/com/cetsoft/imcache/redis/client/RedisStreamWriterTest.java
test_class.identifier: RedisStreamWriterTest
test_case.body: @Test
    public void flush() throws IOException {
      writer.flush();
      verify(outputStream).flush();
      verify(outputStream).write(writer.buffer, 0, writer.position);
      assertEquals(writer.position, 0);
    }
test_case.class_method_signature: RedisStreamWriterTest.flush()
test_case.full_signature: @Test public void flush()
test_case.identifier: flush
test_case.invocations: flush flush verify write verify assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void flush()
focal_class.declarator: BUFFER_SIZE = 8192
focal_class.modifier: public static final
focal_class.original_string: public static final int BUFFER_SIZE = 8192;
focal_class.type: int
focal_class.var_name: BUFFER_SIZE
focal_class.declarator: buffer = new byte[BUFFER_SIZE]
focal_class.modifier: final
focal_class.original_string: final byte[] buffer = new byte[BUFFER_SIZE];
focal_class.type: byte[]
focal_class.var_name: buffer
focal_class.declarator: outputStream
focal_class.modifier: private final
focal_class.original_string: private final OutputStream outputStream;
focal_class.type: OutputStream
focal_class.var_name: outputStream
focal_class.declarator: position
focal_class.original_string: int position;
focal_class.type: int
focal_class.var_name: position
focal_class.file: imcache-redis/src/main/java/com/cetsoft/imcache/redis/client/RedisStreamWriter.java
focal_class.identifier: RedisStreamWriter
focal_class.interfaces: implements Closeable
focal_class.class_method_signature: RedisStreamWriter.RedisStreamWriter(OutputStream outputStream)
focal_class.full_signature: public  RedisStreamWriter(OutputStream outputStream)
focal_class.identifier: RedisStreamWriter
focal_class.modifiers: public
focal_class.parameters: (OutputStream outputStream)
focal_class.signature:  RedisStreamWriter(OutputStream outputStream)
focal_class.class_method_signature: RedisStreamWriter.flush()
focal_class.full_signature: public void flush()
focal_class.identifier: flush
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void flush()
focal_class.class_method_signature: RedisStreamWriter.write(byte theByte)
focal_class.full_signature: public void write(byte theByte)
focal_class.identifier: write
focal_class.modifiers: public
focal_class.parameters: (byte theByte)
focal_class.return: void
focal_class.signature: void write(byte theByte)
focal_class.class_method_signature: RedisStreamWriter.write(int value)
focal_class.full_signature: public void write(int value)
focal_class.identifier: write
focal_class.modifiers: public
focal_class.parameters: (int value)
focal_class.return: void
focal_class.signature: void write(int value)
focal_class.class_method_signature: RedisStreamWriter.writeNewLine()
focal_class.full_signature: public void writeNewLine()
focal_class.identifier: writeNewLine
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void writeNewLine()
focal_class.class_method_signature: RedisStreamWriter.write(byte[] bytes)
focal_class.full_signature: public void write(byte[] bytes)
focal_class.identifier: write
focal_class.modifiers: public
focal_class.parameters: (byte[] bytes)
focal_class.return: void
focal_class.signature: void write(byte[] bytes)
focal_class.class_method_signature: RedisStreamWriter.flushBuffer()
focal_class.full_signature: protected void flushBuffer()
focal_class.identifier: flushBuffer
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void flushBuffer()
focal_class.class_method_signature: RedisStreamWriter.write(final byte[] bytes, final int offset, final int length)
focal_class.full_signature: public void write(final byte[] bytes, final int offset, final int length)
focal_class.identifier: write
focal_class.modifiers: public
focal_class.parameters: (final byte[] bytes, final int offset, final int length)
focal_class.return: void
focal_class.signature: void write(final byte[] bytes, final int offset, final int length)
focal_class.class_method_signature: RedisStreamWriter.close()
focal_class.full_signature: @Override public void close()
focal_class.identifier: close
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void close()
focal_method.body: public void flush() throws IOException {
      flushBuffer();
      outputStream.flush();
    }
focal_method.class_method_signature: RedisStreamWriter.flush()
focal_method.full_signature: public void flush()
focal_method.identifier: flush
focal_method.invocations: flushBuffer flush
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: void
focal_method.signature: void flush()