com.liferay.portal.kernel.io.unsync
Class UnsyncTeeWriter

java.lang.Object
  extended by java.io.Writer
      extended by com.liferay.portal.kernel.io.unsync.UnsyncTeeWriter
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable, java.lang.Appendable

public class UnsyncTeeWriter
extends java.io.Writer

Author:
Shuyang Zhou

Field Summary
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
UnsyncTeeWriter(java.io.Writer writer1, java.io.Writer writer2)
           
 
Method Summary
 java.io.Writer append(char c)
           
 java.io.Writer append(java.lang.CharSequence charSequence)
           
 java.io.Writer append(java.lang.CharSequence charSequence, int start, int end)
           
 void close()
           
 void flush()
           
 void write(char[] chars)
           
 void write(char[] chars, int offset, int length)
           
 void write(int c)
           
 void write(java.lang.String string)
           
 void write(java.lang.String string, int offset, int length)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnsyncTeeWriter

public UnsyncTeeWriter(java.io.Writer writer1,
                       java.io.Writer writer2)
Method Detail

append

public java.io.Writer append(char c)
                      throws java.io.IOException
Specified by:
append in interface java.lang.Appendable
Overrides:
append in class java.io.Writer
Throws:
java.io.IOException

append

public java.io.Writer append(java.lang.CharSequence charSequence)
                      throws java.io.IOException
Specified by:
append in interface java.lang.Appendable
Overrides:
append in class java.io.Writer
Throws:
java.io.IOException

append

public java.io.Writer append(java.lang.CharSequence charSequence,
                             int start,
                             int end)
                      throws java.io.IOException
Specified by:
append in interface java.lang.Appendable
Overrides:
append in class java.io.Writer
Throws:
java.io.IOException

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Specified by:
close in class java.io.Writer
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Specified by:
flush in interface java.io.Flushable
Specified by:
flush in class java.io.Writer
Throws:
java.io.IOException

write

public void write(char[] chars)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(char[] chars,
                  int offset,
                  int length)
           throws java.io.IOException
Specified by:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(int c)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(java.lang.String string)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException

write

public void write(java.lang.String string,
                  int offset,
                  int length)
           throws java.io.IOException
Overrides:
write in class java.io.Writer
Throws:
java.io.IOException