net.sourceforge.jsh3modtool.modpackage
Class FolderModPackage

java.lang.Object
  extended by net.sourceforge.jsh3modtool.modpackage.FolderModPackage
All Implemented Interfaces:
ModPackage

public class FolderModPackage
extends java.lang.Object
implements ModPackage

A file path package. The mod is stored in a normal folder, all files are unpacked.

Author:
redsolo

Constructor Summary
FolderModPackage(java.io.File parentpath)
           
 
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

FolderModPackage

public FolderModPackage(java.io.File parentpath)
                 throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getEntry

public java.io.InputStream getEntry(java.lang.String entryName)
                             throws java.io.IOException
Description copied from interface: ModPackage
Returns an input stream for the specified name.

Specified by:
getEntry in interface ModPackage
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

public boolean entryExists(java.lang.String entryName)
Description copied from interface: ModPackage
Returns whetever the entry exists or not.

Specified by:
entryExists in interface ModPackage
Parameters:
entryName - the name of the entry.
Returns:
true if the entry exists; false otherwise.


Copyright © 2005 sourceforge.net. All Rights Reserved.