Serializable
, Comparable<SamIndexes>
public enum SamIndexes extends Enum<SamIndexes>
Modifier and Type | Field | Description |
---|---|---|
String |
fileNameSuffix |
|
byte[] |
magic |
Modifier and Type | Method | Description |
---|---|---|
static SeekableStream |
asBaiSeekableStreamOrNull(SeekableStream inputStream,
SAMSequenceDictionary dictionary) |
|
static InputStream |
asBaiStreamOrNull(InputStream inputStream,
SAMSequenceDictionary dictionary) |
|
static InputStream |
openIndexFileAsBaiOrNull(File file,
SAMSequenceDictionary dictionary) |
|
static InputStream |
openIndexUrlAsBaiOrNull(URL url,
SAMSequenceDictionary dictionary) |
|
static SamIndexes |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static SamIndexes[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SamIndexes BAI
public static final SamIndexes CRAI
public final String fileNameSuffix
public final byte[] magic
public static SamIndexes[] values()
for (SamIndexes c : SamIndexes.values()) System.out.println(c);
public static SamIndexes 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 InputStream openIndexFileAsBaiOrNull(File file, SAMSequenceDictionary dictionary) throws IOException
IOException
public static InputStream openIndexUrlAsBaiOrNull(URL url, SAMSequenceDictionary dictionary) throws IOException
IOException
public static InputStream asBaiStreamOrNull(InputStream inputStream, SAMSequenceDictionary dictionary) throws IOException
IOException
public static SeekableStream asBaiSeekableStreamOrNull(SeekableStream inputStream, SAMSequenceDictionary dictionary) throws IOException
IOException