public enum HeaderType extends java.lang.Enum<HeaderType>
Enum Constant and Description |
---|
EVIO_FILE
Evio file header.
|
EVIO_FILE_EXTENDED
Evio extended file header.
|
EVIO_RECORD
Evio record header.
|
EVIO_TRAILER
Evio trailer.
|
HIPO_FILE
Hipo file header.
|
HIPO_FILE_EXTENDED
Hipo extended file header.
|
HIPO_RECORD
Hioo record header.
|
HIPO_TRAILER
Hipo trailer.
|
Modifier and Type | Method and Description |
---|---|
static HeaderType |
getHeaderType(int val)
Get the enum from the integer value.
|
static java.lang.String |
getName(int val)
Get the name from the integer value.
|
(package private) int |
getValue()
Get the integer value associated with this header type.
|
boolean |
isEvioFileHeader()
Is this an evio file header?
|
boolean |
isFileHeader()
Is this a file header?
|
boolean |
isHipoFileHeader()
Is this a HIPO file header?
|
boolean |
isTrailer()
Is this a trailer?
|
static HeaderType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HeaderType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HeaderType EVIO_RECORD
public static final HeaderType EVIO_FILE
public static final HeaderType EVIO_FILE_EXTENDED
public static final HeaderType EVIO_TRAILER
public static final HeaderType HIPO_RECORD
public static final HeaderType HIPO_FILE
public static final HeaderType HIPO_FILE_EXTENDED
public static final HeaderType HIPO_TRAILER
public static HeaderType[] values()
for (HeaderType c : HeaderType.values()) System.out.println(c);
public static HeaderType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullint getValue()
public boolean isEvioFileHeader()
true
if is an evio file header, else false
public boolean isHipoFileHeader()
true
if is an HIPO file header, else false
public boolean isFileHeader()
true
if is a file header, else false
public boolean isTrailer()
true
if is a trailer, else false
public static HeaderType getHeaderType(int val)
val
- the value to match.null
.public static java.lang.String getName(int val)
val
- the value to match.null
.