All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.openxc.util.FileOpener Maven / Gradle / Ivy

The newest version!
package com.openxc.util;

import java.io.IOException;
import java.io.BufferedWriter;

/**
 * A generic interface for opening a file for writing.
 *
 * There are multiple ways to open files for writing in Android, specifically
 * via an Android Context object or directly through the filesystem, and this interface
 * abstracts the details away depending on the situation.
 */
public interface FileOpener {
    /**
     * Open the file at the given path for writing.
     *
     * @return a BufferedWriter that references the requested file.
     * @throws IOException if there are issues opening the file
     */
    public BufferedWriter openForWriting(String path) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy