Interface DataOutput
- All Known Subinterfaces:
ObjectOutput
public interface DataOutput
Basic data type output interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidFlush buffer.voidwriteBool(boolean v) Write boolean.voidwriteByte(byte v) Write byte.voidwriteBytes(byte[] v) Write byte array.voidwriteBytes(byte[] v, int off, int len) Write byte array.voidwriteDouble(double v) Write double.voidwriteFloat(float v) Write float.voidwriteInt(int v) Write integer.voidwriteLong(long v) Write long.voidwriteShort(short v) Write short.voidWrite string.
-
Method Details
-
writeBool
Write boolean.- Parameters:
v- value.- Throws:
IOException
-
writeByte
Write byte.- Parameters:
v- value.- Throws:
IOException
-
writeShort
Write short.- Parameters:
v- value.- Throws:
IOException
-
writeInt
Write integer.- Parameters:
v- value.- Throws:
IOException
-
writeLong
Write long.- Parameters:
v- value.- Throws:
IOException
-
writeFloat
Write float.- Parameters:
v- value.- Throws:
IOException
-
writeDouble
Write double.- Parameters:
v- value.- Throws:
IOException
-
writeUTF
Write string.- Parameters:
v- value.- Throws:
IOException
-
writeBytes
Write byte array.- Parameters:
v- value.- Throws:
IOException
-
writeBytes
Write byte array.- Parameters:
v- value.off- the start offset in the data.len- the number of bytes that are written.- Throws:
IOException
-
flushBuffer
Flush buffer.- Throws:
IOException
-