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

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

public class PAKArchive
extends java.lang.Object

An archive of files in Quake 1/2 PAK File format


Constructor Summary
PAKArchive(java.io.InputStream in)
          Creates new PAKArchive.
PAKArchive(java.lang.String filename)
          Creates new PAKArchive.
PAKArchive(java.net.URL url)
          Creates new PAKArchive.
 
Method Summary
 java.io.InputStream getFile(java.lang.String filename)
          Retrieve access to a specified file in this pak
 java.util.List<java.lang.String> getFilenames()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PAKArchive

public PAKArchive(java.io.InputStream in)
           throws java.io.IOException
Creates new PAKArchive.

Parameters:
in - the InputStream to read as a PAK
Throws:
java.io.IOException

PAKArchive

public PAKArchive(java.net.URL url)
           throws java.io.IOException
Creates new PAKArchive.

Parameters:
url - the URL to read as a PAK
Throws:
java.io.IOException

PAKArchive

public PAKArchive(java.lang.String filename)
           throws java.io.IOException
Creates new PAKArchive.

Parameters:
filename - The file to read as a PAK
Throws:
java.io.IOException
Method Detail

getFile

public java.io.InputStream getFile(java.lang.String filename)
                            throws java.io.IOException
Retrieve access to a specified file in this pak

Returns:
The name of the file to retrieve access to
Throws:
java.io.IOException

getFilenames

public java.util.List<java.lang.String> getFilenames()
Returns:
a List of the names of all contained files in the PAKArchive