Package org.vast.swe
Class DataOutputStreamLI
java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
org.vast.swe.DataOutputStreamLI
- All Implemented Interfaces:
Closeable
,DataOutput
,Flushable
,AutoCloseable
,DataOutputExt
Equivalent of DataOutputStream to write in little endian order (i.e Least Significant Byte first)
- Since:
- Jan 10, 2009
-
Field Summary
Fields inherited from class java.io.FilterOutputStream
out
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
writeASCII
(String s) Writes a 0 terminated ASCII string to streamvoid
writeBoolean
(boolean v) void
writeByte
(byte v) void
writeByte
(int v) void
writeBytes
(String s) void
writeChar
(int c) void
writeChars
(String s) void
writeDouble
(double v) void
writeFloat
(float v) void
writeInt
(int v) void
writeLong
(long v) void
writeShort
(int v) void
writeShort
(short v) void
writeUnsignedByte
(short v) Writes the lowest significant byte of the given short value as an unsigned bytevoid
writeUnsignedInt
(long v) Writes the 4 lowest significant bytes of the given long value as an unsigned intvoid
writeUnsignedLong
(long v) Writes long value as unsigned.void
writeUnsignedShort
(int v) Writes the 2 lowest significant bytes of the given int value as an unsigned shortvoid
Methods inherited from class java.io.OutputStream
nullOutputStream
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, write
Methods inherited from interface org.vast.cdm.common.DataOutputExt
close, flush
-
Constructor Details
-
DataOutputStreamLI
-
-
Method Details
-
writeBoolean
- Specified by:
writeBoolean
in interfaceDataOutput
- Throws:
IOException
-
writeByte
- Throws:
IOException
-
writeByte
- Specified by:
writeByte
in interfaceDataOutput
- Throws:
IOException
-
writeUnsignedByte
Description copied from interface:DataOutputExt
Writes the lowest significant byte of the given short value as an unsigned byte- Specified by:
writeUnsignedByte
in interfaceDataOutputExt
- Throws:
IOException
-
writeShort
- Specified by:
writeShort
in interfaceDataOutput
- Throws:
IOException
-
writeShort
- Throws:
IOException
-
writeUnsignedShort
Description copied from interface:DataOutputExt
Writes the 2 lowest significant bytes of the given int value as an unsigned short- Specified by:
writeUnsignedShort
in interfaceDataOutputExt
- Throws:
IOException
-
writeInt
- Specified by:
writeInt
in interfaceDataOutput
- Throws:
IOException
-
writeUnsignedInt
Description copied from interface:DataOutputExt
Writes the 4 lowest significant bytes of the given long value as an unsigned int- Specified by:
writeUnsignedInt
in interfaceDataOutputExt
- Throws:
IOException
-
writeLong
- Specified by:
writeLong
in interfaceDataOutput
- Throws:
IOException
-
writeUnsignedLong
Description copied from interface:DataOutputExt
Writes long value as unsigned.- Specified by:
writeUnsignedLong
in interfaceDataOutputExt
- Throws:
IOException
-
writeFloat
- Specified by:
writeFloat
in interfaceDataOutput
- Throws:
IOException
-
writeDouble
- Specified by:
writeDouble
in interfaceDataOutput
- Throws:
IOException
-
writeChar
- Specified by:
writeChar
in interfaceDataOutput
- Throws:
IOException
-
writeASCII
Description copied from interface:DataOutputExt
Writes a 0 terminated ASCII string to stream- Specified by:
writeASCII
in interfaceDataOutputExt
- Throws:
IOException
-
writeUTF
- Specified by:
writeUTF
in interfaceDataOutput
- Throws:
IOException
-
writeChars
- Specified by:
writeChars
in interfaceDataOutput
- Throws:
IOException
-
writeBytes
- Specified by:
writeBytes
in interfaceDataOutput
- Throws:
IOException
-