presto-parquet/src/main/java/io/prestosql/parquet/reader/MetadataReader.java/MetadataReader/readFully
class MetadataReader:    private static InputStream readFully(FSDataInputStream from, long position, int length)
            throws IOException
    {
        byte[] buffer = new byte[length];
        from.readFully(position, buffer);
        return new ByteArrayInputStream(buffer);
    }