org.archive.wayback.util
Class DirMaker

java.lang.Object
  extended by org.archive.wayback.util.DirMaker

public class DirMaker
extends java.lang.Object

Lots of things need to transform Strings to Files, constructing them if needed. These are static methods for doing that.

Version:
$Date$, $Revision$
Author:
brad

Constructor Summary
DirMaker()
           
 
Method Summary
static java.io.File ensureDir(java.lang.String path)
           
static java.io.File ensureDir(java.lang.String path, java.lang.String name)
          Ensure that the path pointed to by 'path' is a directory, if possible
static java.lang.String getAbsolutePath(java.io.File file)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirMaker

public DirMaker()
Method Detail

ensureDir

public static java.io.File ensureDir(java.lang.String path,
                                     java.lang.String name)
                              throws java.io.IOException
Ensure that the path pointed to by 'path' is a directory, if possible

Parameters:
path -
name -
Returns:
File that is a created directory
Throws:
java.io.IOException

ensureDir

public static java.io.File ensureDir(java.lang.String path)
                              throws java.io.IOException
Throws:
java.io.IOException

getAbsolutePath

public static java.lang.String getAbsolutePath(java.io.File file)


Copyright © 2005-2009 Internet Archive. All Rights Reserved.