default buffer size of 8192 chars.
http://developer.classpath.org/doc/java/io/BufferedWriter-source.html
private static final int DEFAULT_BUFFER_SIZE = 8192;91: public BufferedWriter (Writer out) 92: { 93: this (out, DEFAULT_BUFFER_SIZE); 94: }104: public BufferedWriter (Writer out, int size) 105: { 106: super(out.lock); 107: this.out = out; 108: this.buffer = new char[size]; 109: this.count = 0; 110: }http://javasourcecode.org/html/open-source/jdk/jdk-6u23/java/io/BufferedWriter.java.htmlprivate static int defaultCharBufferSize = 8192;public BufferedWriter(Writer out) { this(out, defaultCharBufferSize); }public BufferedWriter(Writer out, int sz) { super(out); if (sz <= 0) throw new IllegalArgumentException("Buffer size <= 0"); this.out = out; cb = new char[sz]; nChars = sz; nextChar = 0; lineSeparator = (String) java.security.AccessController.doPrivileged( new sun.security.action.GetPropertyAction("line.separator")); }
沒有留言:
張貼留言