com.liferay.portal.kernel.io.unsync
Class UnsyncCharArrayWriter
java.lang.Object
java.io.Writer
com.liferay.portal.kernel.io.unsync.UnsyncCharArrayWriter
- All Implemented Interfaces:
- Closeable, Flushable, Appendable
public class UnsyncCharArrayWriter
- extends Writer
Field Summary |
protected char[] |
buffer
|
protected int |
index
|
buffer
protected char[] buffer
index
protected int index
UnsyncCharArrayWriter
public UnsyncCharArrayWriter()
UnsyncCharArrayWriter
public UnsyncCharArrayWriter(int initialSize)
append
public Writer append(char c)
- Specified by:
append
in interface Appendable
- Overrides:
append
in class Writer
append
public Writer append(CharSequence charSequence)
- Specified by:
append
in interface Appendable
- Overrides:
append
in class Writer
append
public Writer append(CharSequence charSequence,
int start,
int end)
- Specified by:
append
in interface Appendable
- Overrides:
append
in class Writer
close
public void close()
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Writer
flush
public void flush()
- Specified by:
flush
in interface Flushable
- Specified by:
flush
in class Writer
reset
public void reset()
size
public int size()
toCharBuffer
public CharBuffer toCharBuffer()
toString
public String toString()
- Overrides:
toString
in class Object
write
public void write(char[] charArray)
- Overrides:
write
in class Writer
write
public void write(char[] charArray,
int offset,
int length)
- Specified by:
write
in class Writer
write
public void write(int c)
- Overrides:
write
in class Writer
write
public void write(String string)
- Overrides:
write
in class Writer
write
public void write(String string,
int offset,
int length)
- Overrides:
write
in class Writer
writeTo
public int writeTo(CharBuffer charBuffer)
writeTo
public int writeTo(OutputStream outputStream,
String charsetName)
throws IOException
- Throws:
IOException
writeTo
public int writeTo(Writer writer)
throws IOException
- Throws:
IOException