Java BufferedReader Create getBufferedReader(File file, String charset)

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

Description

get Buffered Reader

License

Apache License

Declaration

public static BufferedReader getBufferedReader(File file, String charset) throws IOException 

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.IOException;

import java.io.InputStreamReader;

public class Main {
    public static BufferedReader getBufferedReader(File file, String charset) throws IOException {
        FileInputStream is = new FileInputStream(file);
        InputStreamReader fileReader = new InputStreamReader(is, charset);
        return new BufferedReader(fileReader);
    }/*  w w  w.jav a  2 s .co m*/
}

Related

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