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

com.softicar.platform.common.io.reader.BufferedReaderFactory 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.reader;

import java.io.BufferedReader;
import java.io.File;
import java.io.InputStream;
import java.nio.charset.Charset;

/**
 * A static factory for {@link BufferedReader}.
 *
 * @author Oliver Richers
 */
public class BufferedReaderFactory {

	public static BufferedReader read(InputStream inputStream, Charset charset) {

		return new BufferedReader(InputStreamReaderFactory.read(inputStream, charset));
	}

	public static BufferedReader readUtf8(InputStream inputStream) {

		return new BufferedReader(InputStreamReaderFactory.readUtf8(inputStream));
	}

	public static BufferedReader readUtf8(File file) {

		return new BufferedReader(InputStreamReaderFactory.readUtf8(file));
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy