public class CopyUtils extends Object
Modifier and Type | Field and Description |
---|---|
protected static int |
BUFFER_SIZE |
Modifier and Type | Method and Description |
---|---|
static void |
copyFile(File sourceFile,
File destFile,
boolean overwrite,
boolean preserveLastModified)
Copies file from source to destination.
|
static void |
copyFile(File sourceFile,
File destFile,
Properties tokens,
boolean overwrite,
boolean preserveLastModified)
Copies file from source to destination.
|
static void |
copyFileFromJar(InputStream in,
File destFile,
boolean overwrite)
Copies file from source to destination.
|
public static void copyFile(File sourceFile, File destFile, boolean overwrite, boolean preserveLastModified) throws IOException
sourceFile
- The source file object.destFile
- The destination file object.overwrite
- The flat to indicate whether to overwrite.preserveLastModified
- The flat to preserve modified dateIOException
public static void copyFile(File sourceFile, File destFile, Properties tokens, boolean overwrite, boolean preserveLastModified) throws IOException
sourceFile
- The source file object.destFile
- The destination file object.tokens
- The map to replace the file contents.overwrite
- The flat to indicate whether to overwrite.preserveLastModified
- The flat to preserve modified dateIOException
public static void copyFileFromJar(InputStream in, File destFile, boolean overwrite) throws IOException
in
- The input stream object..destFile
- The destination file object.overwrite
- The flat to indicate whether to overwrite.IOException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.