public class BufferOutputStream extends OutputStream
| Modifier and Type | Field and Description |
|---|---|
protected io.netty.buffer.ByteBuf |
byteBuf |
| Constructor and Description |
|---|
BufferOutputStream() |
BufferOutputStream(io.netty.buffer.ByteBuf buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
io.vertx.core.buffer.Buffer |
getBuffer() |
io.netty.buffer.ByteBuf |
getByteBuf() |
int |
length() |
void |
write(boolean value) |
void |
write(byte[] b) |
void |
write(byte[] bytes,
int offset,
int len) |
void |
write(int byteValue) |
void |
writeByte(byte value) |
void |
writeInt(int value) |
void |
writeInt(int pos,
int value) |
void |
writeLong(long value) |
int |
writerIndex() |
void |
writeShort(short value) |
void |
writeString(String value) |
flushpublic BufferOutputStream()
public BufferOutputStream(io.netty.buffer.ByteBuf buffer)
public io.netty.buffer.ByteBuf getByteBuf()
public io.vertx.core.buffer.Buffer getBuffer()
public int length()
public void writeByte(byte value)
public void write(int byteValue)
write in class OutputStreampublic void write(boolean value)
public void writeInt(int pos,
int value)
public void writeShort(short value)
public void writeInt(int value)
public void writeLong(long value)
public void writeString(String value)
public void write(byte[] b)
write in class OutputStreampublic void write(byte[] bytes,
int offset,
int len)
write in class OutputStreampublic void close()
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreampublic int writerIndex()
Copyright © 2017–2018 The Apache Software Foundation. All rights reserved.