public enum VCFFormat extends Enum<VCFFormat>
| Modifier and Type | Method and Description |
|---|---|
static VCFFormat |
inferFromData(InputStream in)
Infers the VCF format by looking at the first few bytes of the input.
|
static VCFFormat |
inferFromFilePath(org.apache.hadoop.fs.Path path)
Infers the VCF format by looking at the filename of the given path.
|
static VCFFormat |
inferFromFilePath(String name)
Infers the VCF format by looking at the extension of the given file
name.
|
static boolean |
isGzip(InputStream in) |
static VCFFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static VCFFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static VCFFormat[] values()
for (VCFFormat c : VCFFormat.values()) System.out.println(c);
public static VCFFormat valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static VCFFormat inferFromFilePath(org.apache.hadoop.fs.Path path)
inferFromFilePath(String)public static VCFFormat inferFromData(InputStream in) throws IOException
IOExceptionpublic static boolean isGzip(InputStream in) throws IOException
true if the stream is compressed with gzip (or BGZF)IOExceptionCopyright © 2016. All rights reserved.