|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
jasm.io.BinaryOutputStream
public class BinaryOutputStream
Field Summary | |
---|---|
protected int |
count
|
protected java.io.OutputStream |
output
|
protected int |
value
|
Constructor Summary | |
---|---|
BinaryOutputStream(java.io.OutputStream output)
Write out data in big-endian format. |
Method Summary | |
---|---|
static java.lang.String |
bin2str(int v)
|
void |
close()
|
void |
flush()
|
static void |
main(java.lang.String[] argss)
|
void |
pad_u8()
Pad out stream to nearest byte boundary |
void |
write_bit(boolean bit)
|
void |
write_u16(int w)
Write an unsigned integer value using 16bits using a big-endian encoding. |
void |
write_u32(int w)
Write an unsigned integer value using 32bits using a big-endian encoding. |
void |
write_u8(int w)
Write an unsigned integer value using 8bits using a big-endian encoding. |
void |
write_un(int bits,
int n)
Write an unsigned integer value using n bits using a big-endian encoding. |
void |
write_uv(int w)
Write an unsigned integer value using a variable amount of space. |
void |
write(byte[] bytes)
|
void |
write(byte[] bytes,
int offset,
int length)
|
void |
write(int i)
Write an unsigned integer value using 8bits using a big-endian encoding. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.OutputStream output
protected int value
protected int count
Constructor Detail |
---|
public BinaryOutputStream(java.io.OutputStream output)
output
- Method Detail |
---|
public void write(int i) throws java.io.IOException
write
in class java.io.OutputStream
w
-
java.io.IOException
public void write(byte[] bytes) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] bytes, int offset, int length) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write_u8(int w) throws java.io.IOException
w
-
java.io.IOException
public void write_u16(int w) throws java.io.IOException
w
-
java.io.IOException
public void write_u32(int w) throws java.io.IOException
w
-
java.io.IOException
public void write_uv(int w) throws java.io.IOException
w
- --- number to convert (which cannot be negative)
java.io.IOException
public void write_un(int bits, int n) throws java.io.IOException
w
-
java.io.IOException
public void write_bit(boolean bit) throws java.io.IOException
java.io.IOException
public void pad_u8() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public static java.lang.String bin2str(int v)
public static void main(java.lang.String[] argss)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |