Here you can find the source of deleteTempFile(String sourceFilePath)
Parameter | Description |
---|
static void deleteTempFile(String sourceFilePath)
//package com.java2s; /**/* w w w . ja v a 2 s . c o m*/ * @file DexterUtilHelper.java * @brief DexterUtilHelper class source file * @author adarsh.t * * Copyright 2014 by Samsung Electronics, Inc. * All rights reserved. * * Project Description : * This software is the confidential and proprietary information * of Samsung Electronics, Inc. ("Confidential Information"). You * shall not disclose such Confidential Information and shall use * it only in accordance with the terms of the license agreement * you entered into with Samsung Electronics. */ import java.io.File; public class Main { /** * DeleteTempFile(String sourceFilePath) method is responsible * delete content file * * @param [in] String fileContents * @return [out] String * @warning [None] * @exception IO exception */ static void deleteTempFile(String sourceFilePath) { File tempfile = new File(sourceFilePath); if (tempfile.exists()) { tempfile.delete(); } } }