Liferay 6.0.5

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

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

public class UnsyncBufferedWriter
extends Writer

See http://issues.liferay.com/browse/LPS-6648.


Field Summary
protected  char[] buffer
           
protected  int count
           
protected  int size
           
protected  Writer writer
           
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
UnsyncBufferedWriter(Writer writer)
           
UnsyncBufferedWriter(Writer writer, int size)
           
 
Method Summary
 void close()
           
 void flush()
           
 void newLine()
           
 void write(char[] charArray, int offset, int length)
           
 void write(int c)
           
 void write(String string, int offset, int length)
           
 
Methods inherited from class java.io.Writer
append, append, append, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buffer

protected char[] buffer

count

protected int count

size

protected int size

writer

protected Writer writer
Constructor Detail

UnsyncBufferedWriter

public UnsyncBufferedWriter(Writer writer)

UnsyncBufferedWriter

public UnsyncBufferedWriter(Writer writer,
                            int size)
Method Detail

close

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

flush

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

newLine

public void newLine()
             throws IOException
Throws:
IOException

write

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

write

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

write

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

Liferay 6.0.5