|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream java.io.FilterOutputStream org.freehep.util.io.CompressableOutputStream org.freehep.util.io.BitOutputStream org.freehep.util.io.ByteOrderOutputStream
Class to write bytes and pairs of bytes in both little and big endian order.
Field Summary | |
protected boolean |
little
|
protected int |
written
|
Fields inherited from class java.io.FilterOutputStream |
out |
Constructor Summary | |
ByteOrderOutputStream(OutputStream out)
|
|
ByteOrderOutputStream(OutputStream out,
boolean littleEndian)
|
Method Summary | |
int |
size()
|
void |
write(int b)
|
void |
writeAsciiZString(String s)
|
void |
writeBoolean(boolean b)
|
void |
writeByte(byte[] bytes)
|
void |
writeByte(int b)
Write a signed byte. |
void |
writeBytes(String s)
|
void |
writeChar(int c)
|
void |
writeChars(String s)
|
void |
writeDouble(double d)
|
void |
writeFloat(float f)
|
void |
writeInt(int i)
Write a signed integer. |
void |
writeInt(int[] ints)
|
void |
writeLong(long l)
|
void |
writeShort(int s)
Write a signed short. |
void |
writeShort(short[] shorts)
|
void |
writeString(String s)
|
void |
writeUnsignedByte(int ub)
Write an unsigned byte. |
void |
writeUnsignedByte(int[] bytes)
|
void |
writeUnsignedInt(long i)
Write an unsigned integer. |
void |
writeUnsignedInt(long[] ints)
|
void |
writeUnsignedShort(int s)
Write an unsigned short. |
void |
writeUnsignedShort(int[] shorts)
|
void |
writeUTF(String s)
|
static void |
writeUTF(String s,
DataOutput dos)
|
Methods inherited from class org.freehep.util.io.BitOutputStream |
byteAlign, close, finish, flushByte, minBits, minBits, minBits, writeBitFlag, writeFBits, writeSBits, writeUBits |
Methods inherited from class org.freehep.util.io.CompressableOutputStream |
startCompressing, write |
Methods inherited from class java.io.FilterOutputStream |
flush, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.io.DataOutput |
write, write |
Field Detail |
protected boolean little
protected int written
Constructor Detail |
public ByteOrderOutputStream(OutputStream out)
public ByteOrderOutputStream(OutputStream out, boolean littleEndian)
Method Detail |
public int size() throws IOException
IOException
public void write(int b) throws IOException
write
in interface DataOutput
write
in class BitOutputStream
IOException
public void writeBoolean(boolean b) throws IOException
writeBoolean
in interface DataOutput
IOException
public void writeChar(int c) throws IOException
writeChar
in interface DataOutput
IOException
public void writeByte(int b) throws IOException
writeByte
in interface DataOutput
IOException
public void writeByte(byte[] bytes) throws IOException
IOException
public void writeUnsignedByte(int ub) throws IOException
IOException
public void writeUnsignedByte(int[] bytes) throws IOException
IOException
public void writeShort(int s) throws IOException
writeShort
in interface DataOutput
IOException
public void writeShort(short[] shorts) throws IOException
IOException
public void writeUnsignedShort(int s) throws IOException
IOException
public void writeUnsignedShort(int[] shorts) throws IOException
IOException
public void writeInt(int i) throws IOException
writeInt
in interface DataOutput
IOException
public void writeInt(int[] ints) throws IOException
IOException
public void writeUnsignedInt(long i) throws IOException
IOException
public void writeUnsignedInt(long[] ints) throws IOException
IOException
public void writeLong(long l) throws IOException
writeLong
in interface DataOutput
IOException
public void writeFloat(float f) throws IOException
writeFloat
in interface DataOutput
IOException
public void writeDouble(double d) throws IOException
writeDouble
in interface DataOutput
IOException
public void writeBytes(String s) throws IOException
writeBytes
in interface DataOutput
IOException
public void writeChars(String s) throws IOException
writeChars
in interface DataOutput
IOException
public void writeString(String s) throws IOException
IOException
public void writeUTF(String s) throws IOException
writeUTF
in interface DataOutput
IOException
public void writeAsciiZString(String s) throws IOException
IOException
public static void writeUTF(String s, DataOutput dos) throws IOException
IOException
|
FreeHEP API Version current |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |