dfki.util.io
Class Files
java.lang.Object
|
+--dfki.util.io.Files
- public class Files
- extends java.lang.Object
Field Summary |
static int |
MAX_COPY_BUFFER_SIZE
Maximum size (in bytes) of the buffer used to copy files. |
Constructor Summary |
Files()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAX_COPY_BUFFER_SIZE
public static final int MAX_COPY_BUFFER_SIZE
- Maximum size (in bytes) of the buffer used to copy files.
- See Also:
#copy(String,String)
Files
public Files()
currentWorkingDir
public static java.lang.String currentWorkingDir()
getAbsoluteFilename
public static java.lang.String getAbsoluteFilename(java.lang.String relFilename)
getAbsoluteFile
public static java.io.File getAbsoluteFile(java.lang.String relFilename)
readerToString
public static java.lang.String readerToString(java.io.Reader reader)
throws java.io.IOException
fileToString
public static java.lang.String fileToString(java.lang.String fileName)
throws java.io.IOException
- Returns the content of a given file as a string.