Package mondrian.rolap
Class RolapUtil.TeeWriter
- java.lang.Object
 - 
- java.io.Writer
 - 
- java.io.FilterWriter
 - 
- mondrian.rolap.RolapUtil.TeeWriter
 
 
 
 
- 
- All Implemented Interfaces:
 Closeable,Flushable,Appendable,AutoCloseable
- Enclosing class:
 - RolapUtil
 
public static class RolapUtil.TeeWriter extends FilterWriter
Writes to a string and also to an underlying writer. 
- 
- 
Field Summary
- 
Fields inherited from class java.io.FilterWriter
out 
 - 
 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WritergetWriter()Returns the underlying writer.StringtoString()Returns everything which has been written so far.voidwrite(char[] cbuf)voidwrite(char[] cbuf, int off, int len)voidwrite(int c)voidwrite(String str)voidwrite(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, nullWriter 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
TeeWriter
public TeeWriter(Writer out)
 
 - 
 
- 
Method Detail
- 
toString
public String toString()
Returns everything which has been written so far. 
- 
getWriter
public Writer getWriter()
Returns the underlying writer. 
- 
write
public void write(int c) throws IOException- Overrides:
 writein classFilterWriter- Throws:
 IOException
 
- 
write
public void write(char[] cbuf) throws IOException- Overrides:
 writein classWriter- Throws:
 IOException
 
- 
write
public void write(char[] cbuf, int off, int len) throws IOException- Overrides:
 writein classFilterWriter- Throws:
 IOException
 
- 
write
public void write(String str) throws IOException
- Overrides:
 writein classWriter- Throws:
 IOException
 
- 
write
public void write(String str, int off, int len) throws IOException
- Overrides:
 writein classFilterWriter- Throws:
 IOException
 
 - 
 
 -