code: public void write(byte []buf, int offset, int length, boolean isEnd)
      throws IOException
    {
      System.out.write(buf, offset, length);
      System.out.flush();
    }
docs: Writes the data to the System.out.
  
  @param buf the buffer to write.
  @param offset starting offset in the buffer.
  @param length number of bytes to write.
  @param isEnd true when the stream is closing.