@Override
  public int read(byte[] buffer) throws IOException {
    return read(buffer, 0, buffer.length);
  }
InputStream that returns all bytes from another stream, then appends the specified 'tail' bytes.
fbcore/src/main/java/com/facebook/common/streams/TailAppendingInputStream.java