Java BufferedReader Create getReader(File file)

Here you can find the source of getReader(File file)

Description

get Reader

License

Apache License

Declaration

public static Reader getReader(File file) throws FileNotFoundException 

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

import java.io.InputStreamReader;

import java.io.Reader;

public class Main {
    public static Reader getReader(File file) throws FileNotFoundException {
        return new BufferedReader(new InputStreamReader(new FileInputStream(file)));
    }/*from  w w w . j av a 2  s .  c  o m*/

    public static Reader getReader(String fileName) throws FileNotFoundException {
        return new BufferedReader(new InputStreamReader(new FileInputStream(new File(fileName))));
    }
}

Related

  1. getBufferedReaderFromInputStream(InputStream src)
  2. getBufferedReaderFromInputStreamReader(InputStreamReader isReader)
  3. getBufferedReaderMaybeGZ(String f)
  4. getReader()
  5. getReader(File file)
  6. getReader(File file)
  7. getReader(File file)
  8. getReader(File inFile)
  9. getReader(File queryFile)