|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.util.FileUtils
org.jboss.jdocbook.util.FileUtils
public class FileUtils
Various file
and directory
related utilities.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.codehaus.plexus.util.FileUtils |
---|
org.codehaus.plexus.util.FileUtils.FilterWrapper |
Field Summary | |
---|---|
static java.io.FileFilter |
ACCEPT_ALL
A filter which simply accepts any file about which it is asked. |
Fields inherited from class org.codehaus.plexus.util.FileUtils |
---|
FS, ONE_GB, ONE_KB, ONE_MB |
Constructor Summary | |
---|---|
FileUtils()
|
Method Summary | |
---|---|
static javax.xml.transform.sax.SAXSource |
createSAXSource(java.io.File file,
org.xml.sax.EntityResolver resolver,
boolean xincludeAware)
Create a SAXSource from a given file. |
static java.lang.String |
determineRelativity(java.io.File file,
java.io.File basedir)
Determine the 'relativity' of a file in relation to the given basedir. |
static long |
findLeastRecentTimestamp(java.io.File directory,
java.io.FileFilter acceptor)
(recursively) find the least recent timestamp in said directory. |
static long |
findLeastRecentTimestamp(long current,
java.io.File directory,
java.io.FileFilter acceptor)
|
static long |
findMostRecentTimestamp(java.io.File directory,
java.io.FileFilter acceptor)
(recursively) find the most recent timestamp in said directory. |
static java.lang.String |
resolveFullPathName(java.io.File path)
Here for consistent handling of full path names. |
Methods inherited from class org.codehaus.plexus.util.FileUtils |
---|
basename, basename, byteCountToDisplaySize, catPath, cleanDirectory, cleanDirectory, contentEquals, copyDirectory, copyDirectory, copyDirectoryStructure, copyDirectoryStructureIfModified, copyFile, copyFile, copyFileIfModified, copyFileToDirectory, copyFileToDirectory, copyFileToDirectoryIfModified, copyFileToDirectoryIfModified, copyURLToFile, createTempFile, deleteDirectory, deleteDirectory, dirname, extension, fileAppend, fileAppend, fileDelete, fileExists, filename, fileRead, fileRead, fileRead, fileRead, fileWrite, fileWrite, forceDelete, forceDelete, forceDeleteOnExit, forceMkdir, getDefaultExcludes, getDefaultExcludesAsList, getDirectoryNames, getDirectoryNames, getExtension, getFile, getFileAndDirectoryNames, getFileNames, getFileNames, getFiles, getFiles, getFilesFromExtension, getPath, getPath, loadFile, mkdir, normalize, removeExtension, removePath, removePath, rename, resolveFile, sizeOfDirectory, sizeOfDirectory, toFile, toURLs, waitFor, waitFor |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.io.FileFilter ACCEPT_ALL
Constructor Detail |
---|
public FileUtils()
Method Detail |
---|
public static javax.xml.transform.sax.SAXSource createSAXSource(java.io.File file, org.xml.sax.EntityResolver resolver, boolean xincludeAware)
buffered
.
file
- The file from which to generate a SAXSourceresolver
- An entity resolver to apply to the file reader.xincludeAware
- Should we handle XIncludes?
public static java.lang.String determineRelativity(java.io.File file, java.io.File basedir)
file
- The file for which to determine relativity.basedir
- The directory from which to base the relativity.
java.lang.RuntimeException
- Indicates that the given file was not found to be relative to basedir.public static long findMostRecentTimestamp(java.io.File directory, java.io.FileFilter acceptor)
directory
- The directory to check.acceptor
- A filter telling which files to consider.
timestamp
found.public static long findLeastRecentTimestamp(java.io.File directory, java.io.FileFilter acceptor)
directory
- The directory to check.acceptor
- A filter telling which files to consider.
timestamp
found.public static long findLeastRecentTimestamp(long current, java.io.File directory, java.io.FileFilter acceptor)
public static java.lang.String resolveFullPathName(java.io.File path)
path
- The path
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |