|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.freecol.common.io.FreeColDataFile
net.sf.freecol.common.io.FreeColModFile
public class FreeColModFile
A modification.
| Field Summary | |
|---|---|
static java.lang.String[] |
FILE_ENDINGS
|
private java.lang.String |
id
|
static java.lang.String |
MOD_DESCRIPTOR_FILE
|
private java.lang.String |
parent
|
static java.lang.String |
SPECIFICATION_FILE
|
| Constructor Summary | |
|---|---|
FreeColModFile(java.io.File file)
Make a FreeColModFile from a File. |
|
| Method Summary | |
|---|---|
protected java.lang.String[] |
getFileEndings()
File endings that are supported for this type of data file. |
java.lang.String |
getId()
Gets the ID of this mod. |
private java.io.InputStream |
getModDescriptorInputStream()
Gets the input stream to the mod meta file. |
java.lang.String |
getParent()
Gets the parent of the mod. |
Specification |
getSpecification()
Returns the Specification of this Mod. |
java.io.InputStream |
getSpecificationInputStream()
Gets the input stream to the specification. |
protected void |
readModDescriptor()
Reads a file object representing this mod. |
| Methods inherited from class net.sf.freecol.common.io.FreeColDataFile |
|---|
getFileFilter, getFileNames, getInputStream, getResourceMapping, getURI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SPECIFICATION_FILE
public static final java.lang.String MOD_DESCRIPTOR_FILE
public static final java.lang.String[] FILE_ENDINGS
private java.lang.String id
private java.lang.String parent
| Constructor Detail |
|---|
public FreeColModFile(java.io.File file)
throws java.io.IOException
file - The File containing a FreeCol mod.
java.io.IOException - if thrown while opening the file.| Method Detail |
|---|
public java.io.InputStream getSpecificationInputStream()
throws java.io.IOException
InputStream to the file
"specification.xml" within this data file.
java.io.IOException - if thrown while opening the
input stream.
public Specification getSpecification()
throws java.io.IOException
Specification value
java.io.IOException - if an error occurs
protected void readModDescriptor()
throws java.io.IOException
java.io.IOException - if thrown while reading the
"mod.xml" file.
private java.io.InputStream getModDescriptorInputStream()
throws java.io.IOException
InputStream to the file
"mod.xml" within this data file.
java.io.IOException - if thrown while opening the
input stream.protected java.lang.String[] getFileEndings()
getFileEndings in class FreeColDataFilepublic java.lang.String getId()
public java.lang.String getParent()
String value
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||