Package org.apache.velocity.texen.util
Class FileUtil
- java.lang.Object
-
- org.apache.velocity.texen.util.FileUtil
-
public class FileUtil extends java.lang.Object
A general file utility for use in the context- Version:
- $Id: FileUtil.java 463298 2006-10-12 16:10:32Z henning $
- Author:
- Leon Messerschmidt, Jason van Zyl
-
-
Constructor Summary
Constructors Constructor Description FileUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.io.File
file(java.lang.String s)
A method to get a File object.static java.io.File
file(java.lang.String base, java.lang.String s)
A method to get a File object.static java.lang.String
mkdir(java.lang.String s)
Creates the directory s (and any parent directories needed).
-
-
-
Method Detail
-
mkdir
public static java.lang.String mkdir(java.lang.String s)
Creates the directory s (and any parent directories needed).- Parameters:
s
- path/directory to create.- Returns:
- report of path/directory creation.
-
file
public static java.io.File file(java.lang.String s)
A method to get a File object.- Parameters:
s
- path to file object to create.- Returns:
- File created file object.
-
file
public static java.io.File file(java.lang.String base, java.lang.String s)
A method to get a File object.- Parameters:
base
- base paths
- file name- Returns:
- File created file object.
-
-