VcfReader { public static VcfHeader header(final Readable readable) throws IOException { return VcfHeaderParser.header(readable); } private  VcfReader(); static void parse(final Readable readable, final VcfParseListener listener); static void stream(final Readable readable, final VcfStreamListener listener); static VcfHeader header(final Readable readable); static Iterable<VcfSample> samples(final Readable readable); static Iterable<VcfRecord> records(final Readable readable); static VcfHeader header(final File file); static VcfHeader header(final URL url); static VcfHeader header(final InputStream inputStream); static Iterable<VcfSample> samples(final File file); static Iterable<VcfSample> samples(final URL url); static Iterable<VcfSample> samples(final InputStream inputStream); static Iterable<VcfRecord> records(final File file); static Iterable<VcfRecord> records(final URL url); static Iterable<VcfRecord> records(final InputStream inputStream);  }
@Test(expected=NullPointerException.class) public void testHeaderNullReadable() throws Exception { header((Readable) null); }
@Test(expected=IOException.class) public void testHeaderEmptyReadable() throws Exception { header(emptyReadable); }
@Test public void testHeader() throws Exception { VcfHeader header = header(readable); assertEquals("VCFv4.2", header.getFileFormat()); }
@Test(expected=NullPointerException.class) public void testHeaderNullFile() throws Exception { header((File) null); }
@Test public void testHeaderFile() throws Exception { validateHeader(header(createFile(VCF))); }
@Test(expected=NullPointerException.class) public void testHeaderNullURL() throws Exception { header((URL) null); }
@Test public void testHeaderURL() throws Exception { validateHeader(header(createURL(VCF))); }
@Test(expected=NullPointerException.class) public void testHeaderNullInputStream() throws Exception { header((InputStream) null); }
@Test public void testHeaderInputStream() throws Exception { validateHeader(header(createInputStream(VCF))); }