View Javadoc
1   /*
2    * Created on 2005-maj-13
3    */
4   package net.sourceforge.jsh3modtool.modpackage;
5   
6   import java.io.IOException;
7   import java.io.InputStream;
8   
9   /***
10   * A mod package.
11   * 
12   * A package contains one or more files for a game mod. The package can be any 
13   * repository, such as a jar file, a file directory, a website, etc.
14   * 
15   * @author redsolo
16   */
17  public ModPackage/package-summary.html">interface ModPackage
18  {
19      /***
20       * Returns an input stream for the specified name.
21       * 
22       * @param entryName name of the entry to return as an input stream.
23       * @return an InputStream for the entry.
24       * @throws IOException thrown if the entry couldnt be found.
25       */
26      InputStream getEntry(String entryName) throws IOException;
27      
28      /***
29       * Returns whetever the entry exists or not.
30       * @param entryName the name of the entry.
31       * @return true if the entry exists; false otherwise.
32       */
33      boolean entryExists(String entryName);
34  }