public class UnsyncBufferedWriter
extends Writer
See https://issues.liferay.com/browse/LPS-6648.
Modifier and Type | Field and Description |
---|---|
protected char[] |
buffer |
protected int |
count |
protected int |
size |
protected Writer |
writer |
Constructor and Description |
---|
UnsyncBufferedWriter(Writer writer) |
UnsyncBufferedWriter(Writer writer,
int size) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush() |
void |
newLine() |
void |
write(char[] chars,
int offset,
int length) |
void |
write(int c) |
void |
write(String string,
int offset,
int length) |
protected char[] buffer
protected int count
protected int size
protected Writer writer
public UnsyncBufferedWriter(Writer writer)
public UnsyncBufferedWriter(Writer writer, int size)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class Writer
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class Writer
IOException
public void newLine() throws IOException
IOException
public void write(char[] chars, int offset, int length) throws IOException
write
in class Writer
IOException
public void write(int c) throws IOException
write
in class Writer
IOException
public void write(String string, int offset, int length) throws IOException
write
in class Writer
IOException