public class PackExt
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static PackExt |
BITMAP_INDEX
A pack bitmap index file extension.
|
private java.lang.String |
ext |
static PackExt |
INDEX
A pack index file extension.
|
static PackExt |
KEEP
A keep pack file extension.
|
static PackExt |
PACK
A pack file extension.
|
private int |
pos |
static PackExt |
REFTABLE
A reftable file.
|
private static PackExt[] |
VALUES |
Modifier | Constructor and Description |
---|---|
private |
PackExt(java.lang.String ext,
int pos) |
Modifier and Type | Method and Description |
---|---|
int |
getBit()
Get the bit mask of the extension e.g
1 << getPosition() . |
java.lang.String |
getExtension()
Get the file extension.
|
int |
getPosition()
Get the position of the extension in the values array.
|
static PackExt |
newPackExt(java.lang.String ext)
Returns a PackExt for the file extension and registers it in the values
array.
|
java.lang.String |
toString() |
static PackExt[] |
values()
Get all of the PackExt values.
|
private static volatile PackExt[] VALUES
public static final PackExt PACK
public static final PackExt INDEX
public static final PackExt KEEP
public static final PackExt BITMAP_INDEX
public static final PackExt REFTABLE
private final java.lang.String ext
private final int pos
public static PackExt[] values()
public static PackExt newPackExt(java.lang.String ext)
ext
- the file extension.public java.lang.String getExtension()
public int getPosition()
public int getBit()
1 << getPosition()
.1 << getPosition()
.public java.lang.String toString()
toString
in class java.lang.Object