public class ByteArrayWriter
extends java.io.ByteArrayOutputStream
Constructor and Description |
---|
ByteArrayWriter()
Creates a new ByteArrayWriter object.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
encodeInt(int i) |
void |
writeBigInteger(java.math.BigInteger bi) |
void |
writeBinaryString(byte[] data) |
void |
writeBoolean(boolean b) |
void |
writeInt(int i) |
void |
writeInt(long i) |
static void |
writeIntToArray(byte[] array,
int pos,
int value) |
void |
writeString(java.lang.String str) |
void |
writeUINT32(UnsignedInteger32 value) |
void |
writeUINT64(UnsignedInteger64 value) |
public void writeBigInteger(java.math.BigInteger bi) throws java.io.IOException
bi
- java.io.IOException
public void writeBoolean(boolean b) throws java.io.IOException
b
- java.io.IOException
public void writeBinaryString(byte[] data) throws java.io.IOException
data
- java.io.IOException
public void writeInt(long i) throws java.io.IOException
i
- java.io.IOException
public void writeInt(int i) throws java.io.IOException
i
- java.io.IOException
public static byte[] encodeInt(int i)
i
- public void writeUINT32(UnsignedInteger32 value) throws java.io.IOException
value
- java.io.IOException
public void writeUINT64(UnsignedInteger64 value) throws java.io.IOException
value
- java.io.IOException
public static void writeIntToArray(byte[] array, int pos, int value) throws java.io.IOException
array
- pos
- value
- java.io.IOException
public void writeString(java.lang.String str) throws java.io.IOException
str
- java.io.IOException
Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.