public abstract class AbstractBytesObjectInput extends Object implements ObjectInput
ObjectInput
implementation.
skip(long)
and skipBytes(int)
have been enhanced so that
if a negative number is passed in, they skip backwards effectively
providing rewind capabilities.
This should be removed when the GlobalMarshaller
is no longer based on StreamingMarshaller
.Modifier | Constructor and Description |
---|---|
protected |
AbstractBytesObjectInput(byte[] bytes,
int offset) |
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
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() |
String |
readString() |
int |
readUnsignedByte() |
int |
readUnsignedShort() |
String |
readUTF() |
long |
skip(long n) |
int |
skipBytes(int n) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readObject
protected AbstractBytesObjectInput(byte[] bytes, int offset)
public int read()
read
in interface ObjectInput
public int read(byte[] b)
read
in interface ObjectInput
public int read(byte[] b, int off, int len)
read
in interface ObjectInput
public long skip(long n)
skip
in interface ObjectInput
public int available()
available
in interface ObjectInput
public void close()
close
in interface ObjectInput
close
in interface AutoCloseable
public void readFully(byte[] b) throws EOFException
readFully
in interface DataInput
EOFException
public void readFully(byte[] b, int off, int len) throws EOFException
readFully
in interface DataInput
EOFException
public int skipBytes(int n) throws EOFException
skipBytes
in interface DataInput
EOFException
public boolean readBoolean() throws EOFException
readBoolean
in interface DataInput
EOFException
public byte readByte() throws EOFException
readByte
in interface DataInput
EOFException
public int readUnsignedByte() throws EOFException
readUnsignedByte
in interface DataInput
EOFException
public short readShort() throws EOFException
readShort
in interface DataInput
EOFException
public int readUnsignedShort() throws EOFException
readUnsignedShort
in interface DataInput
EOFException
public char readChar() throws EOFException
readChar
in interface DataInput
EOFException
public int readInt() throws EOFException
readInt
in interface DataInput
EOFException
public long readLong() throws EOFException
readLong
in interface DataInput
EOFException
public float readFloat() throws EOFException
readFloat
in interface DataInput
EOFException
public double readDouble() throws EOFException
readDouble
in interface DataInput
EOFException
public String readUTF() throws EOFException
readUTF
in interface DataInput
EOFException
public String readString() throws EOFException
EOFException
Copyright © 2021 JBoss by Red Hat. All rights reserved.