|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.isogen.util.FileUtil
Constructor Summary | |
FileUtil()
|
Method Summary | |
static java.lang.String |
byteToHex(byte b)
|
static java.lang.String |
charToHex(char c)
|
static void |
copyDirectory(java.io.File sourceDir,
java.io.File destDir)
|
static void |
copyDirectory(java.io.File sourceDir,
java.io.File destDir,
boolean ignore)
|
static void |
copyFile(java.io.File source,
java.io.File dest)
Copies a file from one location to another. |
static void |
copyFile(java.io.File source,
java.io.File dest,
boolean quiet)
Copy one file to another file. |
static void |
copyFile(java.io.InputStream source,
java.io.File dest)
Copy an input stream to a file. |
static void |
copyFile(java.io.InputStream source,
java.io.File dest,
boolean quiet)
Copy an input stream to a file. |
static void |
copyUpdatedFile(java.io.File sourceFile,
java.io.File destDir)
|
static void |
deleteDirectory(java.io.File dir)
|
static java.lang.String |
getAbsolutePath(java.lang.String basePath,
java.lang.String relativePath)
Given a base path (e.g., input source file path) and a path relative to it, * returns an operating-system-specific absolute path formed by combining the base part * with the relative part. |
static java.lang.String |
getFileBaseName(java.lang.String filePath)
Given a filePath, returns the filename minus the extension, e.g., if * the input filename "/a/b/c/foo.bar" returns "foo". |
static java.lang.String |
getFileDir(java.lang.String filePath)
Given a filePath, returns the directory part. |
static java.lang.String |
getFileExtension(java.lang.String filePath)
Given a filePath, returns the extension part. |
static java.lang.String |
getFileName(java.lang.String filePath)
Given a filePath, returns the filename part. |
static java.lang.String |
getRelativePath(java.lang.String filePath,
java.lang.String targetPath)
Returns the relative from targetPath to filePath. |
static void |
printFileBytes(java.lang.String fn)
|
static void |
printFileBytes(java.lang.String fn,
int startByte,
int length)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileUtil()
Method Detail |
public static void copyDirectory(java.io.File sourceDir, java.io.File destDir) throws java.io.IOException
java.io.IOException
public static void copyDirectory(java.io.File sourceDir, java.io.File destDir, boolean ignore) throws java.io.IOException
java.io.IOException
public static void copyUpdatedFile(java.io.File sourceFile, java.io.File destDir) throws java.io.IOException
java.io.IOException
public static void copyFile(java.io.File source, java.io.File dest) throws java.io.IOException
java.io.IOException
public static void copyFile(java.io.File source, java.io.File dest, boolean quiet) throws java.io.IOException
java.io.IOException
public static void copyFile(java.io.InputStream source, java.io.File dest) throws java.io.IOException
java.io.IOException
public static void copyFile(java.io.InputStream source, java.io.File dest, boolean quiet) throws java.io.IOException
java.io.IOException
public static void deleteDirectory(java.io.File dir)
public static java.lang.String getFileDir(java.lang.String filePath)
public static java.lang.String getFileName(java.lang.String filePath)
public static java.lang.String getFileExtension(java.lang.String filePath)
public static java.lang.String getFileBaseName(java.lang.String filePath)
public static java.lang.String getRelativePath(java.lang.String filePath, java.lang.String targetPath)
public static void printFileBytes(java.lang.String fn, int startByte, int length) throws java.io.IOException
java.io.IOException
public static void printFileBytes(java.lang.String fn) throws java.io.IOException
java.io.IOException
public static java.lang.String byteToHex(byte b)
public static java.lang.String charToHex(char c)
public static java.lang.String getAbsolutePath(java.lang.String basePath, java.lang.String relativePath)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |