com.liferay.portal.kernel.io.unsync
Class UnsyncBufferedWriter
java.lang.Object
java.io.Writer
com.liferay.portal.kernel.io.unsync.UnsyncBufferedWriter
- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, java.lang.Appendable
public class UnsyncBufferedWriter
- extends java.io.Writer
View Source
See http://issues.liferay.com/browse/LPS-6648.
- Author:
- Shuyang Zhou
Field Summary |
protected char[] |
buffer
|
protected int |
count
|
protected int |
size
|
protected java.io.Writer |
writer
|
Fields inherited from class java.io.Writer |
lock |
Method Summary |
void |
close()
|
void |
flush()
|
void |
newLine()
|
void |
write(char[] charArray,
int offset,
int length)
|
void |
write(int c)
|
void |
write(java.lang.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 |
buffer
protected char[] buffer
count
protected int count
size
protected int size
writer
protected java.io.Writer writer
UnsyncBufferedWriter
public UnsyncBufferedWriter(java.io.Writer writer)
UnsyncBufferedWriter
public UnsyncBufferedWriter(java.io.Writer writer,
int size)
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
newLine
public void newLine()
throws java.io.IOException
- Throws:
java.io.IOException
write
public void write(char[] charArray,
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,
int offset,
int length)
throws java.io.IOException
- Overrides:
write
in class java.io.Writer
- Throws:
java.io.IOException