Java File to InputStream openStream(InputStream in)

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

Description

open Stream

License

GNU General Public License

Declaration

public static BufferedReader openStream(InputStream in) throws IOException 

Method Source Code


//package com.java2s;
// This file is part of MarMoT, which is licensed under GPLv3.

import java.io.BufferedReader;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;

public class Main {
    public static BufferedReader openStream(InputStream in) throws IOException {
        return new BufferedReader(new InputStreamReader(in, "UTF-8"));
    }/*from  w  w  w  .ja v a2s .  c  o m*/
}

Related

  1. openInputStream(String filePath)
  2. openInputStream(String infilename)
  3. openInputStream(String path)
  4. openStream(final Class clazz, final String path)
  5. openStream(final File file)