public interface DataOutput
| 限定符和类型 | 方法和说明 |
|---|---|
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.
|
void writeBool(boolean v)
throws IOException
v - value.IOExceptionvoid writeByte(byte v)
throws IOException
v - value.IOExceptionvoid writeShort(short v)
throws IOException
v - value.IOExceptionvoid writeInt(int v)
throws IOException
v - value.IOExceptionvoid writeLong(long v)
throws IOException
v - value.IOExceptionvoid writeFloat(float v)
throws IOException
v - value.IOExceptionvoid writeDouble(double v)
throws IOException
v - value.IOExceptionvoid writeUTF(String v) throws IOException
v - value.IOExceptionvoid writeBytes(byte[] v)
throws IOException
v - value.IOExceptionvoid writeBytes(byte[] v,
int off,
int len)
throws IOException
v - value.off - offset.len - length.IOExceptionvoid flushBuffer()
throws IOException
IOExceptionCopyright © 2018. All rights reserved.