org.pf.tools.cda.base.util
Class FileUtil

java.lang.Object
  extended by org.pf.file.FileUtil
      extended by org.pf.tools.cda.base.util.FileUtil

public class FileUtil
extends org.pf.file.FileUtil

Extends the standard PF FileUtil

Version:
1.0
Author:
M.Duchrow

Field Summary
 
Fields inherited from class org.pf.file.FileUtil
CLASSPATH_PREFIX, DEFAULT_BUFFER_SIZE, DEFAULT_TEMP_FILE_PREFIX, DEFAULT_URL_STR_ENCODING, LINE_SEPARATOR
 
Method Summary
 void copyFileIfNecessary(java.lang.String destDir, java.lang.String filename)
          Copies the file with the specified filename to the destination directory if it not yet exists there.
static FileUtil instance()
          Returns the only instance this class supports (design pattern "Singleton")
 boolean isExistingFolder(java.io.File folder)
          Returns true if the given folder is an existing folder on the file system.
 boolean isExistingFolder(java.lang.String path)
          Returns true if the given path is an existing folder on the file system.
 
Methods inherited from class org.pf.file.FileUtil
calculateClasspath, cleanDirectory, cleanDirectory, close, close, convertFromURLSyntax, convertFromURLSyntax, convertToURLSyntax, copyAll, copyFile, copyFile, copyFile, copyFile, copyFile, copyFile, copyStream, copyStream, copyStream, copyText, copyToTempFile, copyToTempFile, copyToTempFile, copyToTempFile, copyToTempFile, createFile, createFile, createFile, current, getClasspath, getLookupPath, isInsideJavaArchive, isLocal, isLocalFileURL, isRemote, javaFilename, javaFilenames, loadNamedValuesFrom, loadPropertiesFrom, openFile, processTextLines, processTextLines, processTextLines, processTextLines, processTextLines, processTextLines, readTextFrom, readTextFrom, readTextFrom, readTextFrom, readTextFrom, readTextFrom, readTextFrom, readTextFrom, readTextFrom, readTextFrom, readTextFrom, readTextFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, readTextLinesFrom, removeDirectory, standardize, standardize, urlDecode, urlDecode, urlEncode, urlEncode
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static FileUtil instance()
Returns the only instance this class supports (design pattern "Singleton")


copyFileIfNecessary

public void copyFileIfNecessary(java.lang.String destDir,
                                java.lang.String filename)
Copies the file with the specified filename to the destination directory if it not yet exists there. The source of the file to copy will be looked up on the classpath.


isExistingFolder

public boolean isExistingFolder(java.lang.String path)
Returns true if the given path is an existing folder on the file system.


isExistingFolder

public boolean isExistingFolder(java.io.File folder)
Returns true if the given folder is an existing folder on the file system.