public class ByteArrayWriter extends Object
| Constructor and Description |
|---|
ByteArrayWriter() |
ByteArrayWriter(byte[] data) |
ByteArrayWriter(int size) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getBytes() |
void |
reset(int size) |
void |
writeByte(byte value) |
void |
writeBytes(byte[] buf) |
void |
writeBytes(byte[] buf,
int off,
int len) |
void |
writeInt(int value) |
void |
writeShort(short value) |
void |
writeString(String value,
int size,
String encoding) |
void |
writeUnsignedByte(short value) |
void |
writeUnsignedInt(long value) |
void |
writeUnsignedShort(int value) |
void |
writeZString(String value,
String encoding) |
public ByteArrayWriter()
public ByteArrayWriter(int size)
public ByteArrayWriter(byte[] data)
public void reset(int size)
public byte[] getBytes()
public void writeUnsignedByte(short value)
public void writeUnsignedShort(int value)
public void writeUnsignedInt(long value)
public void writeByte(byte value)
public void writeShort(short value)
public void writeInt(int value)
public void writeBytes(byte[] buf)
public void writeBytes(byte[] buf,
int off,
int len)
Copyright © 2014. All rights reserved.