mondrian.rolap
Class RolapUtil.TeeWriter
java.lang.Object
java.io.Writer
java.io.FilterWriter
mondrian.rolap.RolapUtil.TeeWriter
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, java.lang.Appendable
- Enclosing class:
- RolapUtil
public static class RolapUtil.TeeWriter
- extends java.io.FilterWriter
Writes to a string and also to an underlying writer.
Field Summary |
(package private) java.io.StringWriter |
buf
|
Fields inherited from class java.io.FilterWriter |
out |
Fields inherited from class java.io.Writer |
lock |
Method Summary |
java.io.Writer |
getWriter()
Returns the underlying writer. |
java.lang.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(java.lang.String str)
|
void |
write(java.lang.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 |
buf
java.io.StringWriter buf
RolapUtil.TeeWriter
public RolapUtil.TeeWriter(java.io.Writer out)
toString
public java.lang.String toString()
- Returns everything which has been written so far.
- Overrides:
toString
in class java.lang.Object
getWriter
public java.io.Writer getWriter()
- Returns the underlying writer.
write
public void write(int c)
throws java.io.IOException
- Overrides:
write
in class java.io.FilterWriter
- Throws:
java.io.IOException
write
public void write(char[] cbuf)
throws java.io.IOException
- Overrides:
write
in class java.io.Writer
- Throws:
java.io.IOException
write
public void write(char[] cbuf,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class java.io.FilterWriter
- Throws:
java.io.IOException
write
public void write(java.lang.String str)
throws java.io.IOException
- Overrides:
write
in class java.io.Writer
- Throws:
java.io.IOException
write
public void write(java.lang.String str,
int off,
int len)
throws java.io.IOException
- Overrides:
write
in class java.io.FilterWriter
- Throws:
java.io.IOException