Java FileReader Create getFileReader(String filename)

Here you can find the source of getFileReader(String filename)

Description

get File Reader

License

Open Source License

Declaration

public static Reader getFileReader(String filename) throws FileNotFoundException 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;

import java.io.Reader;

public class Main {
    public static Reader getFileReader(String filename) throws FileNotFoundException {
        return getFileReader(new File(filename));
    }/*from w  w  w  . ja va2 s  . c  o m*/

    public static Reader getFileReader(File file) throws FileNotFoundException {
        return new FileReader(file);
    }
}

Related

  1. getFileReader(File file)
  2. getFileReader(File file)
  3. getFileReader(String fileName)
  4. getFileReader(String fileName)
  5. getFileReader(String filePath)
  6. getFileReader(String sFileName)
  7. getReader(final File file)