< prev index next >
src/java.xml/share/classes/com/sun/org/apache/xalan/internal/xsltc/runtime/output/WriterOutputBuffer.java
Print this page
rev 59105 : imported patch corelibs
*** 31,55 ****
*/
class WriterOutputBuffer implements OutputBuffer {
private static final int KB = 1024;
private static int BUFFER_SIZE = 4 * KB;
- static {
- // Set a larger buffer size for Solaris
- final String osName = SecuritySupport.getSystemProperty("os.name");
- if (osName.equalsIgnoreCase("solaris")) {
- BUFFER_SIZE = 32 * KB;
- }
- }
-
private Writer _writer;
/**
* Initializes a WriterOutputBuffer by creating an instance of a
* BufferedWriter. The size of the buffer in this writer may have
! * a significant impact on throughput. Solaris prefers a larger
! * buffer, while Linux works better with a smaller one.
*/
public WriterOutputBuffer(Writer writer) {
_writer = new BufferedWriter(writer, BUFFER_SIZE);
}
--- 31,46 ----
*/
class WriterOutputBuffer implements OutputBuffer {
private static final int KB = 1024;
private static int BUFFER_SIZE = 4 * KB;
private Writer _writer;
/**
* Initializes a WriterOutputBuffer by creating an instance of a
* BufferedWriter. The size of the buffer in this writer may have
! * a significant impact on throughput.
*/
public WriterOutputBuffer(Writer writer) {
_writer = new BufferedWriter(writer, BUFFER_SIZE);
}
< prev index next >