FileUtil (Velocity 1.7 API)
Keywords: org.apache.velocity.texen.util.FileUtil class

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.velocity.texen.util
Class FileUtil

    java.lang.Object
      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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2010 Apache Software Foundation. All Rights Reserved.