public static FileMetaData readFileMetaData ( InputStream from , boolean skipRowGroups ) throws IOException { FileMetaData md = new FileMetaData ( ) ; if ( skipRowGroups ) { readFileMetaData ( from , new DefaultFileMetaDataConsumer ( md ) , skipRowGroups ) ; } else { read ( from , md ) ; } return md ; }
reads the meta data from the stream