Package com.sun.identity.tools.bundles
Class CopyUtils
- java.lang.Object
 - 
- com.sun.identity.tools.bundles.CopyUtils
 
 
- 
public class CopyUtils extends Object
 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected static intBUFFER_SIZE 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcopyFile(File sourceFile, File destFile, boolean overwrite, boolean preserveLastModified)Copies file from source to destination.static voidcopyFile(File sourceFile, File destFile, Properties tokens, boolean overwrite, boolean preserveLastModified)Copies file from source to destination.static voidcopyFileFromJar(InputStream in, File destFile, boolean overwrite)Copies file from source to destination. 
 - 
 
- 
- 
Method Detail
- 
copyFile
public static void copyFile(File sourceFile, File destFile, boolean overwrite, boolean preserveLastModified) throws IOException
Copies file from source to destination. The destination directories will be created if it is not in the system- Parameters:
 sourceFile- The source file object.destFile- The destination file object.overwrite- The flat to indicate whether to overwrite.preserveLastModified- The flat to preserve modified date- Throws:
 IOException
 
- 
copyFile
public static void copyFile(File sourceFile, File destFile, Properties tokens, boolean overwrite, boolean preserveLastModified) throws IOException
Copies file from source to destination. The destination directories will be created if it is not in the system- Parameters:
 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 date- Throws:
 IOException
 
- 
copyFileFromJar
public static void copyFileFromJar(InputStream in, File destFile, boolean overwrite) throws IOException
Copies file from source to destination. The destination directories will be created if it is not in the system- Parameters:
 in- The input stream object..destFile- The destination file object.overwrite- The flat to indicate whether to overwrite.- Throws:
 IOException
 
 - 
 
 -