|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.jsh3modtool.modpackage.JarModPackage
public class JarModPackage
A jar file package. The mod is packed into a jar file, this class handles the extraction of the files from the jar file.
| Constructor Summary | |
|---|---|
protected |
JarModPackage(java.io.File file)
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected JarModPackage(java.io.File file)
throws java.io.IOException
file - the jar file.
java.io.IOException - thrown if the file does not exist.| Method Detail |
|---|
public java.io.InputStream getEntry(java.lang.String entryName)
throws java.io.IOException
ModPackage
getEntry in interface ModPackageentryName - name of the entry to return as an input stream.
java.io.IOException - thrown if the entry couldnt be found.public boolean entryExists(java.lang.String entryName)
ModPackage
entryExists in interface ModPackageentryName - the name of the entry.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||