|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.OutputStream
|
+--java.io.FilterOutputStream
|
+--java.io.DataOutputStream
|
+--com.novell.java.io.EndianOutputStream
Provides for writing primitive Java data types to a stream in an endian specific format.
Primitive data types are well understood types with associated operations. For example, an int is considered to be a good primitive data type. The data can be converted back using a DataInputStream. A prior knowledge of stream contents is needed.
EndianOutput| Constructor Summary | |
EndianOutputStream(java.io.OutputStream out)
Constructs a new EndianOutputStream object with an OutputStream parameter. |
|
| Method Summary | |
void |
pad(int n)
Writes empty 8-bit bytes to the specified byte boundary. |
void |
writeHiLoChars(java.lang.String s)
Writes a String as a NULL-terminated sequence of chars in high-low order. |
void |
writeHiLoInt(int v)
Writes a 32-bit int in high-low order. |
void |
writeHiLoLong(long v)
Writes a 64-bit long in high-low order. |
void |
writeHiLoShort(int v)
Writes a 16-bit short in high-low order. |
void |
writeLoHiChars(java.lang.String s)
Writes a String as a NULL-terminated sequence of chars in low-high order. |
void |
writeLoHiInt(int v)
Writes a 32-bit int in low-high order. |
void |
writeLoHiLong(long v)
Writes a 64-bit long in low-high order. |
void |
writeLoHiShort(int v)
Writes a 16-bit short in low-high order. |
| 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 |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public EndianOutputStream(java.io.OutputStream out)
out - The Output stream.| Method Detail |
public final void writeHiLoChars(java.lang.String s)
throws java.io.IOException
s - The String of chars to be written.
public final void writeLoHiChars(java.lang.String s)
throws java.io.IOException
s - The String of chars to be written.
public final void writeHiLoInt(int v)
throws java.io.IOException
v - The integer value to be written.
public final void writeLoHiInt(int v)
throws java.io.IOException
v - The integer value to be written.
public final void writeHiLoShort(int v)
throws java.io.IOException
v - The short value to be written.
public final void writeLoHiShort(int v)
throws java.io.IOException
v - The short value to be written.
public final void writeHiLoLong(long v)
throws java.io.IOException
v - The long value to be written.
public final void writeLoHiLong(long v)
throws java.io.IOException
v - The long value to be written.
public final void pad(int n)
throws java.io.IOException
n - The byte boundary.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||