public class VcfParser
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
VcfParser.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getLineNumber() |
VcfMetadata |
getMetadata()
Gets VCF metadata (if it has already been parsed).
|
void |
parse()
Parses the entire VCF file (including the metadata).
|
VcfMetadata |
parseMetadata()
Parses metadata only.
|
boolean |
parseNextLine()
Parses just the next data line available, also reading all the metadata if it has not been read.
|
@Nonnull public VcfMetadata parseMetadata() throws java.io.IOException
parse() is preferred.java.io.IOException@Nullable public VcfMetadata getMetadata()
public void parse()
throws java.io.IOException
java.io.IOExceptionpublic boolean parseNextLine()
throws java.io.IOException
parse() to parse the entire stream is preferred.java.lang.IllegalStateException - If the stream was already fully parsedjava.io.IOExceptionpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablepublic int getLineNumber()