Java UTF8 File Read getUTF8InputStreamReader(InputStream stream)

Here you can find the source of getUTF8InputStreamReader(InputStream stream)

Description

get UTF Input Stream Reader

License

LGPL

Declaration

public static InputStreamReader getUTF8InputStreamReader(InputStream stream) 

Method Source Code

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

import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;

public class Main {

    public static InputStreamReader getUTF8InputStreamReader(InputStream stream) {
        return getInputStreamReader(stream, StandardCharsets.UTF_8);
    }//from   w w  w. j av  a2 s .  c  o  m

    public static InputStreamReader getInputStreamReader(InputStream stream, Charset charset) {
        return new InputStreamReader(stream, charset);
    }
}

Related

  1. getBufferedUTF8Reader(InputStream inputStream)
  2. getUtf8BytesFromFile(String fileName)
  3. getUtf8FileWriter(String file, boolean append)
  4. getUTF8Reader(File f)
  5. loadUTF8(File file)
  6. makeUTF8Reader(InputStream inputStream)
  7. newUtf8Reader(final InputStream in)