Package com.google.common.io
Interface ByteArrayDataInput
-
- All Superinterfaces:
DataInput
public interface ByteArrayDataInput extends DataInput
An extension ofDataInputfor reading from in-memory byte arrays; its methods offer identical functionality but do not throwIOException.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
IllegalStateExceptionto signify programmer error. This behavior is a technical violation of the supertype's contract, which specifies a checked exception.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanreadBoolean()bytereadByte()charreadChar()doublereadDouble()floatreadFloat()voidreadFully(byte[] b)voidreadFully(byte[] b, int off, int len)intreadInt()StringreadLine()longreadLong()shortreadShort()intreadUnsignedByte()intreadUnsignedShort()StringreadUTF()intskipBytes(int n)
-
-
-
Method Detail
-
readFully
void readFully(byte[] b, int off, int len)
-
readBoolean
boolean readBoolean()
- Specified by:
readBooleanin interfaceDataInput
-
readUnsignedByte
int readUnsignedByte()
- Specified by:
readUnsignedBytein interfaceDataInput
-
readUnsignedShort
int readUnsignedShort()
- Specified by:
readUnsignedShortin interfaceDataInput
-
readDouble
double readDouble()
- Specified by:
readDoublein interfaceDataInput
-
-