org.archive.wayback.util
Class DirMaker

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

public class DirMaker
extends Object

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

Version:
$Date: 2010-09-29 05:28:38 +0700 (Wed, 29 Sep 2010) $, $Revision: 3262 $
Author:
brad

Constructor Summary
DirMaker()
           
 
Method Summary
static File ensureDir(String path)
           
static File ensureDir(String path, String name)
          Ensure that the path pointed to by 'path' is a directory, if possible
static String getAbsolutePath(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 File ensureDir(String path,
                             String name)
                      throws 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:
IOException

ensureDir

public static File ensureDir(String path)
                      throws IOException
Throws:
IOException

getAbsolutePath

public static String getAbsolutePath(File file)


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