mondrian.rolap
Class RolapUtil.TeeWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
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.
-
-
buf
StringWriter buf
RolapUtil.TeeWriter
public RolapUtil.TeeWriter(Writer out)
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