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) voidclose()voidflush()voidreset()intsize()toString()voidwrite(char[] chars) voidwrite(char[] chars, int offset, int length) voidwrite(int c) voidvoidintwriteTo(OutputStream outputStream, String charsetName) intintwriteTo(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:
appendin interfaceAppendable- Overrides:
appendin classWriter
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin 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
-