mondrian.rolap
Class RolapUtil.TeeWriter

java.lang.Object
  extended by java.io.Writer
      extended by java.io.FilterWriter
          extended by mondrian.rolap.RolapUtil.TeeWriter
All Implemented Interfaces:
Closeable, Flushable, Appendable
Enclosing class:
RolapUtil

public static class RolapUtil.TeeWriter
extends FilterWriter

Writes to a string and also to an underlying writer.

 

Field Summary
(package private)  StringWriter buf
           
 
Fields inherited from class java.io.FilterWriter
out
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
RolapUtil.TeeWriter(Writer out)
           
 
Method Summary
 Writer getWriter()
          Returns the underlying writer.
 String toString()
          Returns everything which has been written so far.
 void write(char[] cbuf)
           
 void write(char[] cbuf, int off, int len)
           
 void write(int c)
           
 void write(String str)
           
 void write(String str, int off, int len)
           
 
Methods inherited from class java.io.FilterWriter
close, flush
 
Methods inherited from class java.io.Writer
append, append, append
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

buf

StringWriter buf
Constructor Detail

RolapUtil.TeeWriter

public RolapUtil.TeeWriter(Writer out)
Method Detail

toString

public String toString()
Returns everything which has been written so far.

Overrides:
toString in class Object

getWriter

public Writer getWriter()
Returns the underlying writer.


write

public void write(int c)
           throws IOException
Overrides:
write in class FilterWriter
Throws:
IOException

write

public void write(char[] cbuf)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(char[] cbuf,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class FilterWriter
Throws:
IOException

write

public void write(String str)
           throws IOException
Overrides:
write in class Writer
Throws:
IOException

write

public void write(String str,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class FilterWriter
Throws:
IOException

SourceForge.net_Logo