Package com.automation_pros.odva.endian
Interface EndianDataOutput
-
- All Superinterfaces:
java.io.DataOutput
- All Known Implementing Classes:
EndianNioOutput
,EndianOutputStream
,EndianOutputWrapper
public interface EndianDataOutput extends java.io.DataOutput
Define output streams that can deliver items in little-endian format in addition to the standard big-endian primitives. Note that the underlying UTF8 handling in the DataOutput interface uses an unsigned short prefix to UTF8 encodings containing the number of encoded bytes. The method names are inspired by Netty 4.1.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
writeCharLE(int v)
Little-endian counterpart towriteChar()
.void
writeCharsLE(java.lang.String v)
Little-endian counterpart towriteChars()
.void
writeDoubleLE(double v)
Little-endian counterpart towriteDouble()
.void
writeFloatLE(float v)
Little-endian counterpart towriteFloat()
.void
writeIntLE(int v)
Little-endian counterpart towriteInt()
.void
writeLongLE(long v)
Little-endian counterpart towriteLong()
.void
writeShortLE(int v)
Little-endian counterpart towriteShort()
.
-
-
-
Method Detail
-
writeCharLE
void writeCharLE(int v) throws java.io.IOException
Little-endian counterpart towriteChar()
.- Parameters:
v
-- Throws:
java.io.IOException
-
writeCharsLE
void writeCharsLE(java.lang.String v) throws java.io.IOException
Little-endian counterpart towriteChars()
.- Parameters:
v
-- Throws:
java.io.IOException
-
writeDoubleLE
void writeDoubleLE(double v) throws java.io.IOException
Little-endian counterpart towriteDouble()
.- Parameters:
v
-- Throws:
java.io.IOException
-
writeFloatLE
void writeFloatLE(float v) throws java.io.IOException
Little-endian counterpart towriteFloat()
.- Parameters:
v
-- Throws:
java.io.IOException
-
writeShortLE
void writeShortLE(int v) throws java.io.IOException
Little-endian counterpart towriteShort()
.- Parameters:
v
-- Throws:
java.io.IOException
-
writeIntLE
void writeIntLE(int v) throws java.io.IOException
Little-endian counterpart towriteInt()
.- Parameters:
v
-- Throws:
java.io.IOException
-
writeLongLE
void writeLongLE(long v) throws java.io.IOException
Little-endian counterpart towriteLong()
.- Parameters:
v
-- Throws:
java.io.IOException
-
-