|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.biostr.sig.volume.ByteEncoder
public class ByteEncoder
Handle writing numbers in the specified endianness.
| Constructor Summary | |
|---|---|
ByteEncoder(OutputStream out,
ByteOrder endian)
|
|
| Method Summary | |
|---|---|
void |
close()
|
protected void |
finalize()
|
ByteOrder |
getEndian()
|
OutputStream |
getOut()
|
void |
write(byte value)
|
void |
write(char value)
Convenience method for encoding a char into a byte stream. |
void |
write(double value)
Convenience method for encoding a double into a byte stream. |
void |
write(float value)
Convenience method for encoding a float into a byte stream. |
void |
write(int value)
Convenience method for encoding an int into a byte stream. |
void |
write(long value)
Convenience method for encoding a long into a byte stream. |
void |
write(short value)
Convenience method for encoding a short into a byte stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ByteEncoder(OutputStream out,
ByteOrder endian)
out - The stream to which to send written numbersendian - The endianness (Big or Little)| Method Detail |
|---|
public OutputStream getOut()
public ByteOrder getEndian()
public void write(long value)
throws IOException
value - out -
IOException
public void write(int value)
throws IOException
value - out -
IOException
public void write(byte value)
throws IOException
IOException
public void write(short value)
throws IOException
value - out -
IOException
public void write(char value)
throws IOException
value - out -
IOException
public void write(float value)
throws IOException
value - out -
IOException
public void write(double value)
throws IOException
value - out -
IOException
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
public void close()
throws IOException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||