Java BufferedReader Create toBufferedReader(String s)

Here you can find the source of toBufferedReader(String s)

Description

Convert a String to a BufferedReader.

License

Open Source License

Parameter

Parameter Description
s The string to be parsed.

Return

a BufferedReader which delivers the characters.

Declaration

protected static BufferedReader toBufferedReader(String s) 

Method Source Code

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

import java.io.BufferedReader;
import java.io.StringReader;

public class Main {
    /**/* w ww . j a v a 2 s. c om*/
     * Convert a String to a BufferedReader.
     * @param s The string to be parsed.
     * @return a BufferedReader which delivers the characters.
     */
    protected static BufferedReader toBufferedReader(String s) {
        return new BufferedReader(new StringReader(s));
    }
}

Related

  1. toBufferedReader(InputStream is, String charset)
  2. toBufferedReader(Reader reader)
  3. toBufferedReader(Reader reader)
  4. toBufferedReader(Reader reader)
  5. toBufferedReader(Reader reader)