Logo Search packages:      
Sourcecode: uimaj version File versions  Download package

Classes | Static Public Member Functions

org::apache::uima::pear::util::FileUtil Class Reference

List of all members.

Classes

class  DirFileFilter
class  ExtFilenameFilter
class  FileTimeComparator
class  NameFileFilter

Static Public Member Functions

static int cleanUpDirectoryContent (File directory) throws IOException
static int cleanUpDirectoryFiles (File directory) throws IOException
static int cleanUpDirectoryFiles (File directory, int maxLimit) throws IOException
static String computeRelativePath (File referenceDir, File file) throws IOException
static boolean copyFile (File source, File destination) throws IOException
static boolean copyFile (URL sourceUrl, File destination) throws IOException
static Collection< File > createDirList (File rootDir, boolean includeSubdirs) throws IOException
static Collection< File > createDirList (JarFile archive) throws IOException
static Collection< File > createDirList (File rootDir) throws IOException
static Collection< File > createFileList (File filesDir) throws IOException
static Collection< File > createFileList (File filesDir, boolean includeSubdirs) throws IOException
static Collection< File > createFileList (JarFile archive) throws IOException
static File createTempFile (String prefix, String suffix) throws IOException
static boolean deleteDirectory (File dir) throws IOException
static long extractDirectoryFromJar (JarFile jarFile, String dirPath, File targetDir) throws IOException
static long extractFilesFromJar (JarFile jarFile, File targetDir) throws IOException
static long extractFilesFromJar (JarFile jarFile, File targetDir, FileFilter filter) throws IOException
static long extractFilesWithExtFromJar (JarFile jarFile, String fileExt, File targetDir) throws IOException
static String getAbsolutePath (File rootDir, String relativePath)
static String getFileNameExtension (String fileName)
static long getFileSize (String fileLocation)
static String getRelativePath (File rootDir, String absolutePath)
static String identifyUtfSignature (int[] prefix, int length)
static boolean isAsciiFile (File textFile) throws IOException
static boolean isAsciiStream (InputStream iStream) throws IOException
static String[] loadListOfStrings (File textFile) throws IOException
static String[] loadListOfStrings (BufferedReader iStream) throws IOException
static String[] loadListOfStrings (URL textFileURL) throws IOException
static Properties loadPropertiesFromJar (String propFilePath, JarFile jarFile) throws IOException
static String loadTextFile (BufferedReader iStream) throws IOException
static String loadTextFile (File textFile, String encoding) throws IOException
static String loadTextFile (URLConnection urlConnection) throws IOException
static String loadTextFile (File textFile) throws IOException
static String loadTextFile (URL textFileURL) throws IOException
static String loadTextFileFromJar (String filePath, JarFile jarFile) throws IOException
static String localPathToFileUrl (String path)
static boolean moveFile (File source, File destinationDir) throws IOException
static int replaceStringInFile (File textFile, String subStringRegex, String replacement) throws IOException
static SortedSet< File > sortFileListByTime (Collection< File > fileList)
static File zipDirectory (File dir2zip) throws IOException
static ZipOutputStream zipDirectory (File dir2zip, ZipOutputStream zoStream, File referenceDir, File[] excludeFiles) throws IOException
static File zipDirectory (File dir2zip, File zippedFile) throws IOException
static File zipFile (File file2zip, File zippedFile) throws IOException
static File zipFile (File file2zip) throws IOException

Detailed Description

The FileUtil class provides utility methods for working with general files.

Definition at line 62 of file FileUtil.java.


The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index