Java BufferedReader(Reader in, int sz) Constructor

Syntax

BufferedReader(Reader in, int sz) constructor from BufferedReader has the following syntax.

public BufferedReader(Reader in,    int sz)

Example

In the following code shows how to use BufferedReader.BufferedReader(Reader in, int sz) constructor.


/* w  w w.j  a v a 2 s .com*/
import java.io.BufferedReader;
import java.io.StringReader;

public class Main {
  public static void main(String[] args) throws Exception {

    String s = "from java2s.com";

    StringReader sr = new StringReader(s);

    BufferedReader br = new BufferedReader(sr,200);



  }
}