public class ResourceUtils
extends java.lang.Object
PlexusIoResource
instances.Modifier | Constructor and Description |
---|---|
private |
ResourceUtils()
Private constructor, to prevent accidental implementation.
|
Modifier and Type | Method and Description |
---|---|
static void |
copyFile(java.io.InputStream input,
java.io.File outFile)
Copies the sources contents to the given destination file.
|
static void |
copyFile(org.codehaus.plexus.components.io.resources.PlexusIoResource in,
java.io.File outFile)
Copies the sources contents to the given destination file.
|
static boolean |
isCanonicalizedSame(org.codehaus.plexus.components.io.resources.PlexusIoResource resource,
java.io.File file)
Checks, whether the resource and the file are identical.
|
static boolean |
isSame(org.codehaus.plexus.components.io.resources.PlexusIoResource resource,
java.io.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,
java.io.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.
|
private ResourceUtils()
public static boolean isUptodate(org.codehaus.plexus.components.io.resources.PlexusIoResource source, java.io.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, java.io.File outFile) throws java.io.IOException
java.io.IOException
public static void copyFile(java.io.InputStream input, java.io.File outFile) throws java.io.IOException
java.io.IOException
public static boolean isSame(org.codehaus.plexus.components.io.resources.PlexusIoResource resource, java.io.File file)
public static boolean isCanonicalizedSame(org.codehaus.plexus.components.io.resources.PlexusIoResource resource, java.io.File file) throws java.io.IOException
File.getCanonicalFile()
for comparison, which is much
slower than comparing the files.java.io.IOException