|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.plexus.archiver.util.ResourceUtils
public class ResourceUtils
Utility class for work with PlexusIoResource
instances.
Method Summary | |
---|---|
static void |
copyFile(org.codehaus.plexus.components.io.resources.PlexusIoResource in,
File outFile)
Copies the sources contents to the given destination file. |
static boolean |
isCanonicalizedSame(org.codehaus.plexus.components.io.resources.PlexusIoResource resource,
File file)
Checks, whether the resource and the file are identical. |
static boolean |
isSame(org.codehaus.plexus.components.io.resources.PlexusIoResource resource,
File file)
Checks, whether the resource and the file are identical. |
static boolean |
isUptodate(long sourceDate,
long destinationDate)
Queries, whether the given source is up-to-date relative to the given modification date. |
static boolean |
isUptodate(org.codehaus.plexus.components.io.resources.PlexusIoResource source,
File destination)
Queries, whether the given source is up-to-date relative to the given destination. |
static boolean |
isUptodate(org.codehaus.plexus.components.io.resources.PlexusIoResource source,
long destinationDate)
Queries, whether the given source is up-to-date relative to the given modification date. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static boolean isUptodate(org.codehaus.plexus.components.io.resources.PlexusIoResource source, File destination)
public static boolean isUptodate(org.codehaus.plexus.components.io.resources.PlexusIoResource source, long destinationDate)
public static boolean isUptodate(long sourceDate, long destinationDate)
public static void copyFile(org.codehaus.plexus.components.io.resources.PlexusIoResource in, File outFile) throws IOException
IOException
public static boolean isSame(org.codehaus.plexus.components.io.resources.PlexusIoResource resource, File file)
public static boolean isCanonicalizedSame(org.codehaus.plexus.components.io.resources.PlexusIoResource resource, File file) throws IOException
File.getCanonicalFile()
for comparison, which is much
slower than comparing the files.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |