net.sourceforge.jsh3modtool.modpackage
Interface ModPackage

All Known Implementing Classes:
FolderModPackage, JarModPackage

public interface ModPackage

A mod package. A package contains one or more files for a game mod. The package can be any repository, such as a jar file, a file directory, a website, etc.

Author:
redsolo

Method Summary
 boolean entryExists(java.lang.String entryName)
          Returns whetever the entry exists or not.
 java.io.InputStream getEntry(java.lang.String entryName)
          Returns an input stream for the specified name.
 

Method Detail

getEntry

java.io.InputStream getEntry(java.lang.String entryName)
                             throws java.io.IOException
Returns an input stream for the specified name.

Parameters:
entryName - name of the entry to return as an input stream.
Returns:
an InputStream for the entry.
Throws:
java.io.IOException - thrown if the entry couldnt be found.

entryExists

boolean entryExists(java.lang.String entryName)
Returns whetever the entry exists or not.

Parameters:
entryName - the name of the entry.
Returns:
true if the entry exists; false otherwise.


Copyright © 2005 sourceforge.net. All Rights Reserved.