|
|||||||||||
| 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
|
+--java.io.DataOutputStream
|
+--com.bbn.openmap.dataAccess.shape.output.LittleEndianOutputStream
Provides methods for writing data to an output stream in LittleEndian and BigEndian. Adapted from the book, Java IO, Elliotte Rusty Harold, Ch. 7.
| Field Summary | |
protected int |
written
|
| Fields inherited from class java.io.FilterOutputStream |
out |
| Constructor Summary | |
LittleEndianOutputStream(java.io.OutputStream out)
Constructor out The output stream to chain this one to. |
|
| Method Summary | |
void |
writeLEChar(int c)
Writes a number of type char in little endian param c An integer that is upcast from a Char data type. |
void |
writeLEChars(java.lang.String s)
Writes a String in little endian |
void |
writeLEDouble(double d)
Writes a number a number of type double in little endian |
void |
writeLEFloat(float f)
Writes a number of type float in little endian |
void |
writeLEInt(int i)
Writes a number of type int in little endian |
void |
writeLELong(long l)
Writes a number of type long in little endian |
void |
writeLEShort(short s)
Writes a number of type short in little endian |
void |
writeLEUTF(java.lang.String s)
|
void |
writeString(java.lang.String string,
int length)
|
| Methods inherited from class java.io.DataOutputStream |
flush, size, write, write, writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
| Methods inherited from class java.io.FilterOutputStream |
close, 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 |
| Field Detail |
protected int written
| Constructor Detail |
public LittleEndianOutputStream(java.io.OutputStream out)
| Method Detail |
public void writeString(java.lang.String string,
int length)
throws java.io.IOException
java.io.IOException
public void writeLEShort(short s)
throws java.io.IOException
s - A number of type short
java.io.IOException
public void writeLEChar(int c)
throws java.io.IOException
java.io.IOException
public void writeLEInt(int i)
throws java.io.IOException
i - A number of type int
java.io.IOException
public void writeLELong(long l)
throws java.io.IOException
l - A number of type long
java.io.IOException
public final void writeLEFloat(float f)
throws java.io.IOException
f - A number of type float.
java.io.IOException
public final void writeLEDouble(double d)
throws java.io.IOException
d - A number of type double
java.io.IOException
public void writeLEChars(java.lang.String s)
throws java.io.IOException
s - A string
java.io.IOException
public void writeLEUTF(java.lang.String s)
throws java.io.IOException
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||