Java Utililty Methods BufferedReader Create

List of utility methods to do BufferedReader Create

Description

The list of methods to do BufferedReader Create are organized into topic(s).

Method

BufferedReadercreateBufferedReader(InputStream inputStream, String strCodepage)
create Buffered Reader
return createBufferedReader(inputStream, strCodepage, false, null);
BufferedReadergetBufferedReader(File file)
Creates a buffered reader for a specified file.
FileInputStream fis = new FileInputStream(file);
InputStreamReader isr = new InputStreamReader(fis);
return new BufferedReader(isr);
BufferedReadergetBufferedReader(File file)
get Buffered Reader
if (file.getName().endsWith(".gz")) {
    return new BufferedReader(new InputStreamReader(new GZIPInputStream(new FileInputStream(file))));
} else {
    return new BufferedReader(new InputStreamReader(new FileInputStream(file)));
BufferedReadergetBufferedReader(File file, String charset)
get Buffered Reader
FileInputStream is = new FileInputStream(file);
InputStreamReader fileReader = new InputStreamReader(is, charset);
return new BufferedReader(fileReader);
BufferedReadergetBufferedReader(File file, String encoding)
get Buffered Reader
return new BufferedReader(new InputStreamReader(new FileInputStream(file), encoding));
BufferedReadergetBufferedReader(final File file)
get Buffered Reader
if (file == null) {
    throw new IllegalArgumentException("file can't be null");
if (file.exists() == false) {
    throw new IllegalArgumentException("file dosen't exist : " + file.getAbsolutePath());
try {
    InputStreamReader reader = new InputStreamReader(new FileInputStream(file));
...
BufferedReadergetBufferedReader(final InputStream inputstream)
Method getBufferedReader
return new BufferedReader(new InputStreamReader(inputstream, fileIOEncoding));
BufferedReadergetBufferedReader(InputStream inputStream)
get Buffered Reader
return new BufferedReader(new InputStreamReader(inputStream));
BufferedReadergetBufferedReader(InputStream inputStream, String charsetName)
get Buffered Reader
return new BufferedReader(new InputStreamReader(inputStream, charsetName));
BufferedReadergetBufferedReader(InputStream stream, String charset)
get Buffered Reader
InputStreamReader inputReader;
if (charset == null) {
    inputReader = new InputStreamReader(stream);
} else {
    inputReader = new InputStreamReader(stream, charset);
return new BufferedReader(inputReader, DEFAULT_SIZE);