Java BufferedReader Create getBufferedReader(File file, String encoding)

Here you can find the source of getBufferedReader(File file, String encoding)

Description

get Buffered Reader

License

Apache License

Declaration

public static BufferedReader getBufferedReader(File file, String encoding) throws Exception 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.io.BufferedReader;

import java.io.File;
import java.io.FileInputStream;

import java.io.InputStreamReader;

public class Main {

    public static BufferedReader getBufferedReader(String filePath, String encoding) throws Exception {
        return new BufferedReader(new InputStreamReader(new FileInputStream(filePath), encoding));
    }//  ww  w  .  j a va 2 s  .  c o  m

    public static BufferedReader getBufferedReader(File file, String encoding) throws Exception {
        return new BufferedReader(new InputStreamReader(new FileInputStream(file), encoding));
    }
}

Related

  1. createBufferedReader( InputStream inputStream, String strCodepage)
  2. getBufferedReader(File file)
  3. getBufferedReader(File file)
  4. getBufferedReader(File file, String charset)
  5. getBufferedReader(final File file)
  6. getBufferedReader(final InputStream inputstream)
  7. getBufferedReader(InputStream inputStream)
  8. getBufferedReader(InputStream inputStream, String charsetName)