Package com.liferay.petra.io.unsync
Class UnsyncCharArrayWriter
java.lang.Object
java.io.Writer
com.liferay.petra.io.unsync.UnsyncCharArrayWriter
- All Implemented Interfaces:
Closeable
,Flushable
,Appendable
,AutoCloseable
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend
(char c) append
(CharSequence charSequence) append
(CharSequence charSequence, int start, int end) void
close()
void
flush()
void
reset()
int
size()
toString()
void
write
(char[] chars) void
write
(char[] chars, int offset, int length) void
write
(int c) void
void
int
writeTo
(OutputStream outputStream, String charsetName) int
int
writeTo
(CharBuffer charBuffer) Methods inherited from class java.io.Writer
nullWriter
-
Constructor Details
-
UnsyncCharArrayWriter
public UnsyncCharArrayWriter() -
UnsyncCharArrayWriter
public UnsyncCharArrayWriter(int initialSize)
-
-
Method Details
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
-
append
- Specified by:
append
in interfaceAppendable
- Overrides:
append
in classWriter
-
close
public void close() -
flush
public void flush() -
reset
public void reset() -
size
public int size() -
toCharBuffer
-
toString
-
write
public void write(char[] chars) -
write
public void write(char[] chars, int offset, int length) -
write
public void write(int c) -
write
-
write
-
writeTo
-
writeTo
- Throws:
IOException
-
writeTo
- Throws:
IOException
-