org.apache.velocity.texen.util
Class FileUtil

java.lang.Object
  extended by 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,v 1.9.8.1 2004/03/03 23:23:07 geirm Exp $
Author:
Leon Messerschmidt, Jason van Zyl

Constructor Summary
FileUtil()
           
 
Method Summary
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).
 
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 java.lang.String mkdir(java.lang.String s)
Creates the directory s (and any parent directories needed).

Parameters:
String - path/directory to create.
String - report of path/directory creation.

file

public static java.io.File file(java.lang.String s)
A method to get a File object.

Parameters:
String - 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:
String - base path
String - file name
Returns:
File created file object.


Copyright ? 2002 Apache Software Foundation. All Rights Reserved.