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

com.softicar.platform.common.io.file.FileInputStreamFactory Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
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);
		}
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy