presto-orc/src/main/java/io/prestosql/orc/stream/ByteArrayInputStream.java/ByteArrayInputStream/next
class ByteArrayInputStream:    public byte[] next(int length)
            throws IOException
    {
        byte[] data = new byte[length];
        next(data, 0, length);
        return data;
    }