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.IOExceptionpublic void writeBoolean(boolean b)
throws java.io.IOException
b - java.io.IOExceptionpublic void writeBinaryString(byte[] data)
throws java.io.IOException
data - java.io.IOExceptionpublic void writeInt(long i)
throws java.io.IOException
i - java.io.IOExceptionpublic void writeInt(int i)
throws java.io.IOException
i - java.io.IOExceptionpublic static byte[] encodeInt(int i)
i - public void writeUINT32(UnsignedInteger32 value) throws java.io.IOException
value - java.io.IOExceptionpublic void writeUINT64(UnsignedInteger64 value) throws java.io.IOException
value - java.io.IOExceptionpublic static void writeIntToArray(byte[] array,
int pos,
int value)
throws java.io.IOException
array - pos - value - java.io.IOExceptionpublic void writeString(java.lang.String str)
throws java.io.IOException
str - java.io.IOExceptionCopyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.