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 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, 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:
write
in classFilterWriter
- Throws:
IOException
-
write
public void write(char[] cbuf) throws IOException
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
public void write(char[] cbuf, int off, int len) throws IOException
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
write
public void write(String str) throws IOException
- Overrides:
write
in classWriter
- Throws:
IOException
-
write
public void write(String str, int off, int len) throws IOException
- Overrides:
write
in classFilterWriter
- Throws:
IOException
-
-