1
2
3
4 package net.sourceforge.jsh3modtool.mod;
5
6 import java.io.IOException;
7 import java.io.InputStream;
8
9 /***
10 * Interface for a data file that replaces one game file.
11 * Classes implementing this interface represents files that replaces files
12 * in a game's folder.
13 * @author redsolo
14 */
15 public interface ModGameFile
16 {
17
18 /***
19 * Returns an input stream that contains the file.
20 * @return an input stream that contains the file.
21 */
22 InputStream getData() throws IOException;
23
24 /***
25 * Returns the name of the game file that this file is going to modify.
26 * @return the name of the game file that this file is going to modify.
27 */
28 String getGameFilename();
29
30 /***
31 * Returns the size of the game file.
32 * @return the size of the game file.
33 */
34
35 }