public enum SAMFormat extends Enum<SAMFormat>
| Modifier and Type | Method and Description |
|---|---|
static SAMFormat |
inferFromData(InputStream in) |
static SAMFormat |
inferFromFilePath(org.apache.hadoop.fs.Path path)
Infers the SAM format by looking at the filename of the given path.
|
static SAMFormat |
inferFromFilePath(String name)
Infers the SAM format by looking at the extension of the given file
name.
|
static SAMFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SAMFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SAMFormat SAM
public static final SAMFormat BAM
public static final SAMFormat CRAM
public static SAMFormat[] values()
for (SAMFormat c : SAMFormat.values()) System.out.println(c);
public static SAMFormat 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 SAMFormat inferFromFilePath(org.apache.hadoop.fs.Path path)
inferFromFilePath(String)public static SAMFormat inferFromData(InputStream in) throws IOException
IOExceptionCopyright © 2017. All rights reserved.