net.sf.freecol.common.io
Class FreeColTcFile

java.lang.Object
  extended by net.sf.freecol.common.io.FreeColDataFile
      extended by net.sf.freecol.common.io.FreeColModFile
          extended by net.sf.freecol.common.io.FreeColTcFile

public class FreeColTcFile
extends FreeColModFile

A Total Conversion (TC).


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.freecol.common.io.FreeColModFile
FreeColModFile.ModDescriptor, FreeColModFile.ModInfo
 
Field Summary
 
Fields inherited from class net.sf.freecol.common.io.FreeColModFile
FILE_ENDINGS
 
Constructor Summary
FreeColTcFile(java.lang.String id)
          Opens the given file for reading.
 
Method Summary
protected  java.lang.String[] getFileEndings()
          File endings that are supported for this type of data file.
 ResourceMapping getResourceMapping()
          Creates a ResourceMapping from the file "resources.properties".
 
Methods inherited from class net.sf.freecol.common.io.FreeColModFile
getId, getModDescriptor, getModInfo, getSpecificationInputStream
 
Methods inherited from class net.sf.freecol.common.io.FreeColDataFile
getFileFilter, getInputStream, getURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FreeColTcFile

public FreeColTcFile(java.lang.String id)
Opens the given file for reading.

Parameters:
id - The id of the TC to load.
Throws:
java.io.IOException - if thrown while opening the file.
Method Detail

getResourceMapping

public ResourceMapping getResourceMapping()
Creates a ResourceMapping from the file "resources.properties".

Overrides:
getResourceMapping in class FreeColDataFile
Returns:
A ResourceMapping or null there is no resource mapping file.

getFileEndings

protected java.lang.String[] getFileEndings()
File endings that are supported for this type of data file.

Overrides:
getFileEndings in class FreeColModFile
Returns:
An array of: ".ftc" and ".zip".