public abstract class FileUtil
extends java.lang.Object
Constructor and Description |
---|
FileUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
copyFile(java.io.File fsrc,
java.io.File fdest) |
static java.lang.String |
findPath(java.io.File f,
java.lang.String name) |
static java.lang.String |
getRelativeDirectory(java.io.File ftgt,
java.io.File rtFolder) |
static java.lang.String |
getRootName(java.io.File f) |
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)
Copyright © 2013. All Rights Reserved.