Package io.activej.bytebuf.util
Class ByteBufWriter
java.lang.Object
java.io.Writer
io.activej.bytebuf.util.ByteBufWriter
- All Implemented Interfaces:
Closeable,Flushable,Appendable,AutoCloseable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionByteBufWriter(MemSize initialSize) ByteBufWriter(MemSize initialSize, Charset charset) ByteBufWriter(Charset charset) -
Method Summary
Methods inherited from class java.io.Writer
nullWriter
-
Field Details
-
INITIAL_BUF_SIZE
-
-
Constructor Details
-
ByteBufWriter
public ByteBufWriter() -
ByteBufWriter
-
ByteBufWriter
-
ByteBufWriter
-
-
Method Details
-
write
public void write(char @NotNull [] cbuf, int off, int len) -
write
public void write(int c) -
write
public void write(char @NotNull [] cbuf) -
write
-
write
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter
-
append
- Specified by:
appendin interfaceAppendable- Overrides:
appendin classWriter
-
flush
public void flush() -
close
public void close() -
getBuf
-