June 2002
Beginner to intermediate
640 pages
14h 24m
English
DataInput and DataOutput read and write primitive Java types from a stream. Since they're interfaces, all of their methods, which follow, are abstract and so do nothing until they're instantiated.
DataInput:
readBoolean()
readByte()
readFloat()
readChar()
readDouble()
readInt()
readShort()
readLong()
readLine()
readUTF()
readUnsignedByte()
readUnsignedShort()
readFully(byte_sequence)
readFully(byte_sequence, off, len)
skipBytes(n)
DataOutput:
write (b)
write(byte_sequence)
writeBoolean(boolean)
writeByte(byte)
writeBytes(string)
writeChar(char)
writeChars(string)
writeDouble(double)
writeFloat(float)
writeInt(int)
writeLong(long)
writeShort(short)
writeUTF()
The data stream classes, DataInputStream and DataOutputStream ...
Read now
Unlock full access