|
|
The java.io Package - Data Input and Output
| DataInputStream Methods |
DataOutputStream Methods |
| |
write(int oneByte) |
read(byte[] buf)
read(byte[] buf, int offset, int count) |
write(byte[] buf)
write(byte[] buf, int offset, int count) |
|
|
| readBoolean() |
writeBoolean(boolean b) |
| readByte() |
writeByte(int val) |
| |
writeBytes(String str) |
| readChar() |
writeChar(int val) |
| |
writeChars(String str) |
| readDouble() |
writeDouble(double val) |
| readFloat() |
writeFloat(float val) |
readFully(byte[] buf)
readFully(byte[] buf, int offset, int count) |
|
| readInt() |
writeInt(int val) |
| readLine() |
|
| readLong() |
writeLong(long val) |
| readShort() |
writeShort(int val) |
| readUnsignedByte() |
|
| readUnsignedShort() |
|
| readUTF() |
writeUTF(String str) |
| skipBytes() |
|
Items in red are deprecated.
All the methods throw IOException
|
Source Code for Examples
|