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

Variable Index

 o fileLength
 o filePosition
 o internalName

Constructor Index

 o Quake2PakDirectoryEntry(byte[], int, int)
creates a directory entry with the specified name, offset and length.

Method Index

 o choppedName()
Chops up the internal name to get rid of any 0 bytes at the end, and returns it as a nice String.
 o length()
 o name()
Returns the fill internal name, 0 bytes and all
 o position()

Variables

 o internalName
 protected byte internalName[]
 o filePosition
 protected int filePosition
 o fileLength
 protected int fileLength

Constructors

 o 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.

Methods

 o 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.
 o 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.
 o position
 public int position()
 o length
 public int length()

All Packages  Class Hierarchy  This Package  Previous  Next  Index