org.proteinshader.graphics.textures
Class EqualSignConfigReader

java.lang.Object
  extended by org.proteinshader.graphics.textures.EqualSignConfigReader
All Implemented Interfaces:
ConfigReader

public class EqualSignConfigReader
extends Object
implements ConfigReader

Reads a configuration file to obtain a list of menu names and matching filenames for textures.


Constructor Summary
EqualSignConfigReader()
          Constructs an EqualSignConfigReader object.
 
Method Summary
 List<NamePair> readConfigFile(File file)
          Reads a configuration file to obtain a list of menu names with a matching filename for each menu name.
 List<NamePair> readConfigFile(String filename)
          Reads a configuration file to obtain a list of menu names with a matching filename for each menu name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EqualSignConfigReader

public EqualSignConfigReader()
Constructs an EqualSignConfigReader object.

Method Detail

readConfigFile

public List<NamePair> readConfigFile(String filename)
                              throws TextureException
Reads a configuration file to obtain a list of menu names with a matching filename for each menu name.

The file is expected to be an equal sign separated file of the form
menu name 1 = filename 1
menu name 2 = filename 2
menu name 3 = filename 3
etc.

Specified by:
readConfigFile in interface ConfigReader
Parameters:
filename - the config file to read.
Returns:
A list of menu name and filename pairs.
Throws:
TextureException - if the config file cannot be read.

readConfigFile

public List<NamePair> readConfigFile(File file)
                              throws TextureException
Reads a configuration file to obtain a list of menu names with a matching filename for each menu name.

The file is expected to be an equal sign separated file of the form
menu name 1 = filename 1
menu name 2 = filename 2
menu name 3 = filename 3
etc.

Specified by:
readConfigFile in interface ConfigReader
Parameters:
file - the config file to read.
Returns:
A list of menu name and filename pairs.
Throws:
TextureException - if the config file cannot be read.


Copyright © 2007-2008