code: public static InputStream openStream(ReadableBuffer buffer, boolean owner) {
      return new BufferInputStream(owner ? buffer : ignoreClose(buffer));
    }
docs: Creates a new {@link InputStream} backed by the given buffer. Any read taken on the stream will
  automatically increment the read position of this buffer. Closing the stream, however, does not
  affect the original buffer.
  
  @param buffer the buffer backing the new {@link InputStream}.
  @param owner if {@code true}, the returned stream will close the buffer when closed.