Java BufferedReader Create getReader(InputStream in)

Here you can find the source of getReader(InputStream in)

Description

get Reader

License

Apache License

Declaration

public static BufferedReader getReader(InputStream in) throws IOException 

Method Source Code


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

import java.io.*;

public class Main {
    private static String charEncoding = "UTF-8";

    public static BufferedReader getReader(InputStream in) throws IOException {
        return new BufferedReader(new InputStreamReader(in, getCharEncoding()));
    }//  ww  w .j a v a2 s.  c o  m

    public static String getCharEncoding() {
        return charEncoding;
    }
}

Related

  1. getReader(final File inputFile)
  2. getReader(final InputStream is, final String enc)
  3. getReader(final Object aReference, final String aResourceName)
  4. getReader(final String fileName)
  5. getReader(final String fileName)
  6. getReader(InputStream input)
  7. getReader(InputStream is)
  8. getReader(InputStream is)
  9. getReader(String fileDir, String fileName, String encoding)