org.codehaus.plexus.archiver.util
Class ResourceUtils
public
class
ResourceUtils
extends Object
Utility class for work with PlexusIoResource instances.
Method Summary |
static void | copyFile(PlexusIoResource in, File outFile)
Copies the sources contents to the given destination file. |
static boolean | isCanonicalizedSame(PlexusIoResource resource, File file)
Checks, whether the resource and the file are identical.
|
static boolean | isSame(PlexusIoResource resource, File file)
Checks, whether the resource and the file are identical. |
static boolean | isUptodate(PlexusIoResource source, File destination)
Queries, whether the given source is uptodate relative to
the given destination. |
static boolean | isUptodate(PlexusIoResource source, long destinationDate)
Queries, whether the given source is uptodate relative to
the given modification date. |
static boolean | isUptodate(long sourceDate, long destinationDate)
Queries, whether the given source is uptodate relative to
the given modification date. |
public static void copyFile(PlexusIoResource in, File outFile)
Copies the sources contents to the given destination file.
public static boolean isCanonicalizedSame(PlexusIoResource resource, File file)
Checks, whether the resource and the file are identical.
Uses File#getCanonicalFile() for comparison, which is much
slower than comparing the files.
public static boolean isSame(PlexusIoResource resource, File file)
Checks, whether the resource and the file are identical.
public static boolean isUptodate(PlexusIoResource source, File destination)
Queries, whether the given source is uptodate relative to
the given destination.
public static boolean isUptodate(PlexusIoResource source, long destinationDate)
Queries, whether the given source is uptodate relative to
the given modification date.
public static boolean isUptodate(long sourceDate, long destinationDate)
Queries, whether the given source is uptodate relative to
the given modification date.
Copyright © 2001-2009
Codehaus. All Rights Reserved.