org.apache.xalan.xsltc.runtime.output
Class WriterOutputBuffer

java.lang.Object
  extended by org.apache.xalan.xsltc.runtime.output.WriterOutputBuffer
All Implemented Interfaces:
OutputBuffer

 class WriterOutputBuffer
extends java.lang.Object
implements OutputBuffer


Field Summary
private  java.io.Writer _writer
           
private static int BUFFER_SIZE
           
private static int KB
           
 
Constructor Summary
WriterOutputBuffer(java.io.Writer writer)
          Initializes a WriterOutputBuffer by creating an instance of a BufferedWriter.
 
Method Summary
 OutputBuffer append(char ch)
           
 OutputBuffer append(char[] s, int from, int to)
           
 OutputBuffer append(java.lang.String s)
           
 java.lang.String close()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KB

private static final int KB
See Also:
Constant Field Values

BUFFER_SIZE

private static int BUFFER_SIZE

_writer

private java.io.Writer _writer
Constructor Detail

WriterOutputBuffer

public WriterOutputBuffer(java.io.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.

Method Detail

close

public java.lang.String close()
Specified by:
close in interface OutputBuffer

append

public OutputBuffer append(java.lang.String s)
Specified by:
append in interface OutputBuffer

append

public OutputBuffer append(char[] s,
                           int from,
                           int to)
Specified by:
append in interface OutputBuffer

append

public OutputBuffer append(char ch)
Specified by:
append in interface OutputBuffer