public class PlainBufferOutputStream extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
LITTLE_ENDIAN_32_SIZE |
static int |
LITTLE_ENDIAN_64_SIZE |
| Constructor and Description |
|---|
PlainBufferOutputStream(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
int |
count() |
byte[] |
getBuffer() |
boolean |
isFull() |
int |
remain() |
void |
writeBoolean(boolean value) |
void |
writeBytes(byte[] bytes) |
void |
writeDouble(double value) |
void |
writeRawByte(byte value) |
void |
writeRawByte(int value) |
void |
writeRawLittleEndian32(int value)
Write a little-endian 32-bit integer.
|
void |
writeRawLittleEndian64(long value)
Write a little-endian 64-bit integer.
|
public static final int LITTLE_ENDIAN_32_SIZE
public static final int LITTLE_ENDIAN_64_SIZE
public byte[] getBuffer()
public boolean isFull()
public int count()
public int remain()
public void clear()
public void writeRawByte(byte value)
throws IOException
IOExceptionpublic void writeRawByte(int value)
throws IOException
IOExceptionpublic void writeRawLittleEndian32(int value)
throws IOException
IOExceptionpublic void writeRawLittleEndian64(long value)
throws IOException
IOExceptionpublic void writeDouble(double value)
throws IOException
IOExceptionpublic void writeBoolean(boolean value)
throws IOException
IOExceptionpublic void writeBytes(byte[] bytes)
throws IOException
IOExceptionCopyright © 2024. All Rights Reserved.