Parse the header from a file. @param f the file @return the header @throws IOException if there is a problem reading the source
(File f)
| 64 | * @throws IOException if there is a problem reading the source |
| 65 | */ |
| 66 | public VcfHeader parseHeader(File f) throws IOException { |
| 67 | try (Reader r = new InputStreamReader(FileUtils.createInputStream(f, false))) { |
| 68 | return parseHeader(r); |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | // Convenience method |
| 73 | VcfHeader parseHeader(Reader r) throws IOException { |