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
boolean readBoolean()
readBoolean
in interface java.io.DataInput
byte readByte()
readByte
in interface java.io.DataInput
int readUnsignedByte()
readUnsignedByte
in interface java.io.DataInput
short readShort()
readShort
in interface java.io.DataInput
int readUnsignedShort()
readUnsignedShort
in interface java.io.DataInput
char readChar()
readChar
in interface java.io.DataInput
int readInt()
readInt
in interface java.io.DataInput
long readLong()
readLong
in interface java.io.DataInput
float readFloat()
readFloat
in interface java.io.DataInput
double readDouble()
readDouble
in interface java.io.DataInput
java.lang.String readLine()
readLine
in interface java.io.DataInput
java.lang.String readUTF()
readUTF
in interface java.io.DataInput
Copyright © 2010 - 2019 Adobe. All Rights Reserved