public class PackExt extends Object
Modifier and Type | Field and Description |
---|---|
static PackExt |
BITMAP_INDEX
A pack bitmap index file extension.
|
static PackExt |
INDEX
A pack index file extension.
|
static PackExt |
KEEP
A keep pack file extension.
|
static PackExt |
PACK
A pack file extension.
|
static PackExt |
REFTABLE
A reftable file.
|
Modifier and Type | Method and Description |
---|---|
int |
getBit()
Get the bit mask of the extension e.g
1 << getPosition() . |
String |
getExtension()
Get the file extension.
|
int |
getPosition()
Get the position of the extension in the values array.
|
static PackExt |
newPackExt(String ext)
Returns a PackExt for the file extension and registers it in the values
array.
|
String |
toString() |
static PackExt[] |
values()
Get all of the 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
public static PackExt[] values()
public static PackExt newPackExt(String ext)
ext
- the file extension.public String getExtension()
public int getPosition()
public int getBit()
1 << getPosition()
.1 << getPosition()
.Copyright © 2018 Eclipse JGit Project. All rights reserved.