Java BufferedReader Create toBufferedReader(Reader reader)

Here you can find the source of toBufferedReader(Reader reader)

Description

to Buffered Reader

License

Apache License

Declaration

public static BufferedReader toBufferedReader(Reader reader) 

Method Source Code


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

import java.io.*;

public class Main {
    public static BufferedReader toBufferedReader(Reader reader) {
        return reader instanceof BufferedReader ? (BufferedReader) reader : new BufferedReader(reader);
    }/* ww  w.  j  av a  2  s.  co m*/
}

Related

  1. getStreamReader(InputStream input)
  2. getStreamText(InputStream stream)
  3. toBufferedReader(final Reader reader)
  4. toBufferedReader(InputStream is, String charset)
  5. toBufferedReader(Reader reader)
  6. toBufferedReader(Reader reader)
  7. toBufferedReader(Reader reader)
  8. toBufferedReader(String s)