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