jaxp/src/com/sun/org/apache/xalan/internal/xsltc/runtime/output/WriterOutputBuffer.java
equal
deleted
inserted
replaced
21 * $Id: WriterOutputBuffer.java,v 1.2.4.1 2005/09/06 11:43:01 pvedula Exp $ |
21 * $Id: WriterOutputBuffer.java,v 1.2.4.1 2005/09/06 11:43:01 pvedula Exp $ |
22 */ |
22 */ |
23 |
23 |
24 package com.sun.org.apache.xalan.internal.xsltc.runtime.output; |
24 package com.sun.org.apache.xalan.internal.xsltc.runtime.output; |
25 |
25 |
|
26 import com.sun.org.apache.xalan.internal.utils.SecuritySupport; |
26 import java.io.BufferedWriter; |
27 import java.io.BufferedWriter; |
27 import java.io.IOException; |
28 import java.io.IOException; |
28 import java.io.Writer; |
29 import java.io.Writer; |
29 |
30 |
30 /** |
31 /** |
34 private static final int KB = 1024; |
35 private static final int KB = 1024; |
35 private static int BUFFER_SIZE = 4 * KB; |
36 private static int BUFFER_SIZE = 4 * KB; |
36 |
37 |
37 static { |
38 static { |
38 // Set a larger buffer size for Solaris |
39 // Set a larger buffer size for Solaris |
39 final String osName = System.getProperty("os.name"); |
40 final String osName = SecuritySupport.getSystemProperty("os.name"); |
40 if (osName.equalsIgnoreCase("solaris")) { |
41 if (osName.equalsIgnoreCase("solaris")) { |
41 BUFFER_SIZE = 32 * KB; |
42 BUFFER_SIZE = 32 * KB; |
42 } |
43 } |
43 } |
44 } |
44 |
45 |