org.jagatoo.loaders.models.md2.pak
Class PAKHeader

java.lang.Object
  extended by org.jagatoo.loaders.models.md2.pak.PAKHeader

public class PAKHeader
extends java.lang.Object

A header from Quake 2 PAK file.


Constructor Summary
PAKHeader(byte[] data)
          Creates new PAKHeader
 
Method Summary
 int getListingLength()
          Retrieves the directory length.
 int getListingOffset()
          Retrieves the directory listing offset.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PAKHeader

public PAKHeader(byte[] data)
          throws java.io.IOException
Creates new PAKHeader

Parameters:
data - The file to read the header from
Throws:
java.io.IOException
Method Detail

getListingOffset

public int getListingOffset()
Retrieves the directory listing offset.

Returns:
The directory listing offset

getListingLength

public int getListingLength()
Retrieves the directory length.

Returns:
The directory length in bytes