@GwtIncompatible public interface ByteArrayDataInput extends DataInput
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.
Modifier and Type | Method and Description |
---|---|
boolean |
readBoolean() |
byte |
readByte() |
char |
readChar() |
double |
readDouble() |
float |
readFloat() |
void |
readFully(byte[] b) |
void |
readFully(byte[] b,
int off,
int len) |
int |
readInt() |
String |
readLine() |
long |
readLong() |
short |
readShort() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
int |
skipBytes(int n) |
@CanIgnoreReturnValue boolean readBoolean()
readBoolean
in interface DataInput
@CanIgnoreReturnValue byte readByte()
@CanIgnoreReturnValue int readUnsignedByte()
readUnsignedByte
in interface DataInput
@CanIgnoreReturnValue short readShort()
@CanIgnoreReturnValue int readUnsignedShort()
readUnsignedShort
in interface DataInput
@CanIgnoreReturnValue char readChar()
@CanIgnoreReturnValue int readInt()
@CanIgnoreReturnValue long readLong()
@CanIgnoreReturnValue float readFloat()
@CanIgnoreReturnValue double readDouble()
readDouble
in interface DataInput
@CanIgnoreReturnValue String readLine()
@CanIgnoreReturnValue String readUTF()
Copyright © 2010–2018 JBoss by Red Hat. All rights reserved.