Package com.google.common.io
Interface ByteArrayDataInput
- 
- All Superinterfaces:
- java.io.DataInput
 
 @GwtIncompatible public interface ByteArrayDataInput extends java.io.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
- Author:
- Kevin Bourrillion
 
- 
- 
Method SummaryAll 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()java.lang.StringreadLine()longreadLong()shortreadShort()intreadUnsignedByte()intreadUnsignedShort()java.lang.StringreadUTF()intskipBytes(int n)
 
- 
- 
- 
Method Detail- 
readFullyvoid readFully(byte[] b) - Specified by:
- readFullyin interface- java.io.DataInput
 
 - 
readFullyvoid readFully(byte[] b, int off, int len) - Specified by:
- readFullyin interface- java.io.DataInput
 
 - 
skipBytesint skipBytes(int n) - Specified by:
- skipBytesin interface- java.io.DataInput
 
 - 
readBoolean@CanIgnoreReturnValue boolean readBoolean() - Specified by:
- readBooleanin interface- java.io.DataInput
 
 - 
readByte@CanIgnoreReturnValue byte readByte() - Specified by:
- readBytein interface- java.io.DataInput
 
 - 
readUnsignedByte@CanIgnoreReturnValue int readUnsignedByte() - Specified by:
- readUnsignedBytein interface- java.io.DataInput
 
 - 
readShort@CanIgnoreReturnValue short readShort() - Specified by:
- readShortin interface- java.io.DataInput
 
 - 
readUnsignedShort@CanIgnoreReturnValue int readUnsignedShort() - Specified by:
- readUnsignedShortin interface- java.io.DataInput
 
 - 
readChar@CanIgnoreReturnValue char readChar() - Specified by:
- readCharin interface- java.io.DataInput
 
 - 
readInt@CanIgnoreReturnValue int readInt() - Specified by:
- readIntin interface- java.io.DataInput
 
 - 
readLong@CanIgnoreReturnValue long readLong() - Specified by:
- readLongin interface- java.io.DataInput
 
 - 
readFloat@CanIgnoreReturnValue float readFloat() - Specified by:
- readFloatin interface- java.io.DataInput
 
 - 
readDouble@CanIgnoreReturnValue double readDouble() - Specified by:
- readDoublein interface- java.io.DataInput
 
 - 
readLine@CanIgnoreReturnValue @CheckForNull java.lang.String readLine() - Specified by:
- readLinein interface- java.io.DataInput
 
 - 
readUTF@CanIgnoreReturnValue java.lang.String readUTF() - Specified by:
- readUTFin interface- java.io.DataInput
 
 
- 
 
-