接口 DataOutput
-
- 所有已知子接口:
ObjectOutput
- 所有已知实现类:
FastJsonObjectOutput
,FstObjectOutput
,Hessian2ObjectOutput
,JavaObjectOutput
,KryoObjectOutput
,NativeJavaObjectOutput
public interface DataOutput
Data output.
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
flushBuffer()
Flush buffer.void
writeBool(boolean v)
Write boolean.void
writeByte(byte v)
Write byte.void
writeBytes(byte[] v)
Write byte array.void
writeBytes(byte[] v, int off, int len)
Write byte array.void
writeDouble(double v)
Write double.void
writeFloat(float v)
Write float.void
writeInt(int v)
Write integer.void
writeLong(long v)
Write long.void
writeShort(short v)
Write short.void
writeUTF(String v)
Write string.
-
-
-
方法详细资料
-
writeBool
void writeBool(boolean v) throws IOException
Write boolean.- 参数:
v
- value.- 抛出:
IOException
-
writeByte
void writeByte(byte v) throws IOException
Write byte.- 参数:
v
- value.- 抛出:
IOException
-
writeShort
void writeShort(short v) throws IOException
Write short.- 参数:
v
- value.- 抛出:
IOException
-
writeInt
void writeInt(int v) throws IOException
Write integer.- 参数:
v
- value.- 抛出:
IOException
-
writeLong
void writeLong(long v) throws IOException
Write long.- 参数:
v
- value.- 抛出:
IOException
-
writeFloat
void writeFloat(float v) throws IOException
Write float.- 参数:
v
- value.- 抛出:
IOException
-
writeDouble
void writeDouble(double v) throws IOException
Write double.- 参数:
v
- value.- 抛出:
IOException
-
writeUTF
void writeUTF(String v) throws IOException
Write string.- 参数:
v
- value.- 抛出:
IOException
-
writeBytes
void writeBytes(byte[] v) throws IOException
Write byte array.- 参数:
v
- value.- 抛出:
IOException
-
writeBytes
void writeBytes(byte[] v, int off, int len) throws IOException
Write byte array.- 参数:
v
- value.off
- offset.len
- length.- 抛出:
IOException
-
flushBuffer
void flushBuffer() throws IOException
Flush buffer.- 抛出:
IOException
-
-