public class PlainBufferOutputStream extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
LITTLE_ENDIAN_32_SIZE |
static int |
LITTLE_ENDIAN_64_SIZE |
| 构造器和说明 |
|---|
PlainBufferOutputStream(int capacity) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2025. All Rights Reserved.