org.apache.velocity.texen.util
Class FileUtil

java.lang.Object
  extended by org.apache.velocity.texen.util.FileUtil

public class FileUtil
extends 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
FileUtil()
           
 
Method Summary
static File file(String s)
          A method to get a File object.
static File file(String base, String s)
          A method to get a File object.
static String mkdir(String s)
          Creates the directory s (and any parent directories needed).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileUtil

public FileUtil()
Method Detail

mkdir

public static String mkdir(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 File file(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 File file(String base,
                        String s)
A method to get a File object.

Parameters:
base - base path
s - file name
Returns:
File created file object.


Copyright © 2000-2007 The Apache Software Foundation. All Rights Reserved.