Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. */
package com.microsoft.azure.management.resources.fluentcore.utils; import java.io.File; import java.io.IOException;
The wrapper class for file related operations.
/** * The wrapper class for file related operations. */
public class FileProvider {
Prepares the location for file to be created.
Params:
  • file – the file to be created.
Throws:
/** * Prepares the location for file to be created. * @param file the file to be created. * @throws IOException thrown when failed on IO. */
public void prepareFileLocation(File file) throws IOException { // do nothing }
Prepares the location for file to be created.
Params:
  • files – the files to be created.
Throws:
/** * Prepares the location for file to be created. * @param files the files to be created. * @throws IOException thrown when failed on IO. */
public void prepareFileLocation(File... files) throws IOException { for (File file : files) { prepareFileLocation(file); } } }