/** * Deletes the specified file. * * @param pFile The file to delete * @return {@code true}, if the file existed and was deleted. * @throws java.io.IOException if deletion fails */ public static boolean delete(File pFile) throws IOException { return delete(pFile, false); }
/** * Deletes the specified file. * * @param pFilename The name of file to delete * @return {@code true}, if the file existed and was deleted. * @throws java.io.IOException if deletion fails */ public static boolean delete(String pFilename) throws IOException { return delete(new File(pFilename), false); }
/** * Deletes the specified file. * * @param pFilename The name of file to delete * @param pForce Forces delete, even if the parameter is a directory, and * is not empty. Careful! * @return {@code true}, if the file existed and was deleted. * @throws java.io.IOException if deletion fails */ public static boolean delete(String pFilename, boolean pForce) throws IOException { return delete(new File(pFilename), pForce); }
/** * Deletes the specified file. * * @param pFile The file to delete * @return {@code true}, if the file existed and was deleted. * @throws java.io.IOException if deletion fails */ public static boolean delete(File pFile) throws IOException { return delete(pFile, false); }
/** * Deletes the specified file. * * @param pFile The file to delete * @return {@code true}, if the file existed and was deleted. * @throws java.io.IOException if deletion fails */ public static boolean delete(File pFile) throws IOException { return delete(pFile, false); }
/** * Deletes the specified file. * * @param pFilename The name of file to delete * @return {@code true}, if the file existed and was deleted. * @throws java.io.IOException if deletion fails */ public static boolean delete(String pFilename) throws IOException { return delete(new File(pFilename), false); }
/** * Deletes the specified file. * * @param pFilename The name of file to delete * @param pForce Forces delete, even if the parameter is a directory, and * is not empty. Careful! * @return {@code true}, if the file existed and was deleted. * @throws java.io.IOException if deletion fails */ public static boolean delete(String pFilename, boolean pForce) throws IOException { return delete(new File(pFilename), pForce); }
/** * Deletes the specified file. * * @param pFilename The name of file to delete * @param pForce Forces delete, even if the parameter is a directory, and * is not empty. Careful! * @return {@code true}, if the file existed and was deleted. * @throws java.io.IOException if deletion fails */ public static boolean delete(String pFilename, boolean pForce) throws IOException { return delete(new File(pFilename), pForce); }
/** * Deletes the specified file. * * @param pFilename The name of file to delete * @return {@code true}, if the file existed and was deleted. * @throws java.io.IOException if deletion fails */ public static boolean delete(String pFilename) throws IOException { return delete(new File(pFilename), false); }