Java BufferedWriter(Writer out, int sz) Constructor
Syntax
BufferedWriter(Writer out, int sz) constructor from BufferedWriter has the following syntax.
public BufferedWriter(Writer out, int sz)
Example
In the following code shows how to use BufferedWriter.BufferedWriter(Writer out, int sz) constructor.
/*from www. ja v a 2 s. com*/
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.StringWriter;
public class Main {
public static void main(String[] args) throws IOException {
String str = "from java2s.com!";
StringWriter sw = new StringWriter();
BufferedWriter bw = new BufferedWriter(sw,200);
}
}
Home »
Java Tutorial »
java.io »
Java Tutorial »
java.io »