Interface ByteArrayDataInput
- All Superinterfaces:
DataInput
An extension of
DataInput for reading from in-memory byte arrays; its methods offer
identical functionality but do not throw IOException.
Warning: The caller is responsible for not attempting to read past the end of the
array. If any method encounters the end of the array prematurely, it throws IllegalStateException to signify programmer error. This behavior is a technical violation
of the supertype's contract, which specifies a checked exception.
- Since:
- 1.0
- Author:
- Kevin Bourrillion
-
Method Details
-
readFully
-
readFully
-
skipBytes
-
readBoolean
@CanIgnoreReturnValue boolean readBoolean()- Specified by:
readBooleanin interfaceDataInput
-
readByte
-
readUnsignedByte
@CanIgnoreReturnValue int readUnsignedByte()- Specified by:
readUnsignedBytein interfaceDataInput
-
readShort
-
readUnsignedShort
@CanIgnoreReturnValue int readUnsignedShort()- Specified by:
readUnsignedShortin interfaceDataInput
-
readChar
-
readInt
-
readLong
-
readFloat
-
readDouble
@CanIgnoreReturnValue double readDouble()- Specified by:
readDoublein interfaceDataInput
-
readLine
-
readUTF
-