Forge - Shell API 1.2.0.Final

org.jboss.forge.shell.util
Class Files

java.lang.Object
  extended by org.jboss.forge.shell.util.Files

public class Files
extends Object

Author:
Lincoln Baxter, III, George Gastaldi

Field Summary
static String HOME_ALIAS
           
static String SLASH
           
 
Constructor Summary
Files()
           
 
Method Summary
static String canonicalize(String target)
          Replace instances of internal tokens with actual file equivalents.
static File getWorkingDirectory()
          Returns the current working directory
static void unzip(File zipFile, File targetDirectory)
          Unzips a specific file into a target directory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HOME_ALIAS

public static final String HOME_ALIAS
See Also:
Constant Field Values

SLASH

public static final String SLASH
Constructor Detail

Files

public Files()
Method Detail

canonicalize

public static String canonicalize(String target)
Replace instances of internal tokens with actual file equivalents.


getWorkingDirectory

public static File getWorkingDirectory()
Returns the current working directory

Returns:

unzip

public static void unzip(File zipFile,
                         File targetDirectory)
                  throws IOException
Unzips a specific file into a target directory

Throws:
IOException

Forge - Shell API 1.2.0.Final

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.