Java BufferedReader Create toBufferedReader(InputStream is, String charset)

Here you can find the source of toBufferedReader(InputStream is, String charset)

Description

to Buffered Reader

License

Open Source License

Declaration

public static BufferedReader toBufferedReader(InputStream is, String charset)
            throws UnsupportedEncodingException 

Method Source Code


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

import java.io.BufferedReader;

import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;

public class Main {
    public static BufferedReader toBufferedReader(InputStream is) throws UnsupportedEncodingException {
        return new BufferedReader(new InputStreamReader(is, "UTF-8"));
    }/*  w  w  w  .  j a v a 2  s .c  om*/

    public static BufferedReader toBufferedReader(InputStream is, String charset)
            throws UnsupportedEncodingException {
        return new BufferedReader(new InputStreamReader(is, charset));
    }
}

Related

  1. getReaderAsString(Reader reader)
  2. getReaderText(BufferedReader reader)
  3. getStreamReader(InputStream input)
  4. getStreamText(InputStream stream)
  5. toBufferedReader(final Reader reader)
  6. toBufferedReader(Reader reader)
  7. toBufferedReader(Reader reader)
  8. toBufferedReader(Reader reader)
  9. toBufferedReader(Reader reader)