nl.chess.it.util.config
Class FileParser

java.lang.Object
  extended bynl.chess.it.util.config.FileParser

public class FileParser
extends java.lang.Object

Author:
Guus Bosman (Chess-iT)

Constructor Summary
FileParser()
           
 
Method Summary
 java.io.File getExistingReadableFile(java.lang.String key, java.lang.String value)
           
protected  java.lang.String getFileName(java.lang.String key, java.lang.String value)
           
 java.io.File getWriteableFile(java.lang.String key, java.lang.String value)
           Returns a writable, existing File with the given name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileParser

public FileParser()
Method Detail

getExistingReadableFile

public java.io.File getExistingReadableFile(java.lang.String key,
                                            java.lang.String value)

getWriteableFile

public java.io.File getWriteableFile(java.lang.String key,
                                     java.lang.String value)

Returns a writable, existing File with the given name.

Experimental . Does not support names with whitespace in it.

Parameters:
key -
Returns:

getFileName

protected java.lang.String getFileName(java.lang.String key,
                                       java.lang.String value)


Copyright © 2003-2005 Chess-iT. All Rights Reserved.