All Packages Class Hierarchy This Package Previous Next Index
Class blackmane.quake2.pak.Quake2PakDirectoryEntry
java.lang.Object
|
+----blackmane.quake2.pak.Quake2PakDirectoryEntry
- public class Quake2PakDirectoryEntry
- extends Object
-
fileLength
-
-
filePosition
-
-
internalName
-
-
Quake2PakDirectoryEntry(byte[], int, int)
- creates a directory entry with the specified name, offset and length.
-
choppedName()
- Chops up the internal name to get rid of any 0 bytes at the end,
and returns it as a nice String.
-
length()
-
-
name()
- Returns the fill internal name, 0 bytes and all
-
position()
-
internalName
protected byte internalName[]
filePosition
protected int filePosition
fileLength
protected int fileLength
Quake2PakDirectoryEntry
public Quake2PakDirectoryEntry(byte name[],
int pos,
int length)
- creates a directory entry with the specified name, offset and length.
- Parameters:
- name - name of the file as bytes (56 bytes)
- pos - offset of the file's data in the pak file
- length - length of the file in the pak file.
choppedName
public String choppedName()
- Chops up the internal name to get rid of any 0 bytes at the end,
and returns it as a nice String.
- Returns:
- a String containing the chopped up name.
name
public byte[] name()
- Returns the fill internal name, 0 bytes and all
- Returns:
- the full internal name, which may contain 0 bytes at the end.
position
public int position()
length
public int length()
All Packages Class Hierarchy This Package Previous Next Index