| java.lang.Object org.netbeans.modules.etlbulkloader.tools.CopyFile
CopyFile | public class CopyFile (Code) | | Command line program to copy a file to another directory.
|
OVERWRITE_ALWAYS | final public static int OVERWRITE_ALWAYS(Code) | | |
OVERWRITE_ASK | final public static int OVERWRITE_ASK(Code) | | |
OVERWRITE_NEVER | final public static int OVERWRITE_NEVER(Code) | | |
doCopy | public static boolean doCopy(File file)(Code) | | Determine if data is to be copied to given file.
Take into consideration override option and
ask user in case file exists and override option is ask.
Parameters: file - File object for potential destination file true if data is to be copied to file, false if not |
readYesNoFromStandardInput | public static boolean readYesNoFromStandardInput(String message)(Code) | | Print a message to standard output and read lines from
standard input until yes or no (y or n) is entered.
Parameters: message - informative text to be answered by user user answer, true for yes, false for no. |
|
|