com.softicar.platform.common.io.file.FileInputStreamFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.io.file;
import com.softicar.platform.common.core.exceptions.SofticarIOException;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
/**
* This class simplifies the creation of a {@link FileInputStream}.
*
* @author Oliver Richers
*/
public class FileInputStreamFactory {
public static FileInputStream create(File file) {
try {
return new FileInputStream(file);
} catch (IOException exception) {
throw new SofticarIOException(exception);
}
}
}