net.sf.snver.pileup.loader
Class ConfigureReader

java.lang.Object
  extended by net.sf.snver.pileup.loader.ConfigureReader

public class ConfigureReader
extends java.lang.Object

Ini file loader

Created by IntelliJ IDEA. User: weicheng hu Date: 11/7/11 Time: 2:40 PM


Constructor Summary
ConfigureReader(int n, java.lang.String path)
          Deprecated. 
ConfigureReader(java.util.Properties properties)
           
ConfigureReader(java.lang.String configFileName, java.lang.String path)
          Deprecated. 
 
Method Summary
 java.io.File getFile(int index)
          Return file handler by given index
 java.lang.String getFilePath(int index)
          Return file path by given index
 java.util.Properties getProperties(int index)
          Return n by given index
 java.lang.String getShortName(int index)
          Return short name of file by given index
 int size()
          Return the pool size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigureReader

@Deprecated
public ConfigureReader(java.lang.String configFileName,
                                  java.lang.String path)
                throws java.lang.Exception
Deprecated. 

Constructor using ini file

Parameters:
configFileName - String
path - String
Throws:
java.lang.Exception

ConfigureReader

@Deprecated
public ConfigureReader(int n,
                                  java.lang.String path)
                throws java.lang.Exception
Deprecated. 

Constructor using -n property

Parameters:
n - int
path - String
Throws:
java.lang.Exception

ConfigureReader

public ConfigureReader(java.util.Properties properties)
                throws java.io.IOException,
                       NoMatchOptionException
Throws:
java.io.IOException
NoMatchOptionException
Method Detail

size

public int size()
Return the pool size

Returns:
int

getFilePath

public java.lang.String getFilePath(int index)
Return file path by given index

Parameters:
index - int
Returns:
String

getProperties

public java.util.Properties getProperties(int index)
Return n by given index

Parameters:
index - int
Returns:
Properties

getFile

public java.io.File getFile(int index)
Return file handler by given index

Parameters:
index - index
Returns:
File

getShortName

public java.lang.String getShortName(int index)
Return short name of file by given index

Parameters:
index - int
Returns:
String