public abstract class FileUtil
extends java.lang.Object
Constructor and Description |
---|
FileUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
clearCache(java.io.File fparam) |
static void |
copyFile(java.io.File fsrc,
java.io.File fdest) |
static void |
deleteDir(java.io.File fdir) |
static java.lang.String |
findPath(java.io.File f,
java.lang.String name) |
static java.util.ArrayList<java.lang.String> |
getPathElements(java.io.File rootDir,
java.io.File ftgt) |
static java.lang.String |
getRelativeDirectory(java.io.File ftgt,
java.io.File rtFolder) |
static java.lang.String |
getRootName(java.io.File f) |
static java.io.File |
getSiblingFile(java.io.File fme,
java.lang.String ext) |
static java.io.File |
getTempFolder() |
static java.util.ArrayList<java.io.File> |
matchingFiles(java.lang.String srcPattern) |
static byte[] |
readBytes(java.io.File f) |
static java.lang.String |
readFirstLine(java.io.File f) |
static byte[] |
readHeader(java.io.File f,
int n) |
static java.lang.String |
readStringFromFile(java.io.File f) |
static void |
writeByteArrayToFile(byte[] ba,
java.io.File f) |
static void |
writeBytes(byte[] ba,
java.io.File f) |
static boolean |
writeStringToFile(java.lang.String sdat,
java.io.File f) |
public static byte[] readHeader(java.io.File f, int n)
public static byte[] readBytes(java.io.File f)
public static java.lang.String readStringFromFile(java.io.File f)
public static boolean writeStringToFile(java.lang.String sdat, java.io.File f)
public static java.lang.String getRootName(java.io.File f)
public static void writeBytes(byte[] ba, java.io.File f)
public static void writeByteArrayToFile(byte[] ba, java.io.File f)
public static void copyFile(java.io.File fsrc, java.io.File fdest)
public static java.lang.String findPath(java.io.File f, java.lang.String name)
public static java.lang.String readFirstLine(java.io.File f)
public static java.lang.String getRelativeDirectory(java.io.File ftgt, java.io.File rtFolder)
public static java.util.ArrayList<java.io.File> matchingFiles(java.lang.String srcPattern)
public static void deleteDir(java.io.File fdir)
public static java.io.File getTempFolder()
public static void clearCache(java.io.File fparam)
public static java.io.File getSiblingFile(java.io.File fme, java.lang.String ext)
public static java.util.ArrayList<java.lang.String> getPathElements(java.io.File rootDir, java.io.File ftgt)
Copyright © 2013. All Rights Reserved.