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 191743 2005-06-21 23:22:20Z dlr $
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:
the 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:
the created file object.


Copyright © 2002 Apache Software Foundation. All Rights Reserved.