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, waitreadObjectprotected AbstractBytesObjectInput(byte[] bytes,
int offset)
public int read()
read in interface ObjectInputpublic int read(byte[] b)
read in interface ObjectInputpublic int read(byte[] b,
int off,
int len)
read in interface ObjectInputpublic long skip(long n)
skip in interface ObjectInputpublic int available()
available in interface ObjectInputpublic void close()
close in interface ObjectInputclose in interface AutoCloseablepublic void readFully(byte[] b)
throws EOFException
readFully in interface DataInputEOFExceptionpublic void readFully(byte[] b,
int off,
int len)
throws EOFException
readFully in interface DataInputEOFExceptionpublic int skipBytes(int n)
throws EOFException
skipBytes in interface DataInputEOFExceptionpublic boolean readBoolean()
throws EOFException
readBoolean in interface DataInputEOFExceptionpublic byte readByte()
throws EOFException
readByte in interface DataInputEOFExceptionpublic int readUnsignedByte()
throws EOFException
readUnsignedByte in interface DataInputEOFExceptionpublic short readShort()
throws EOFException
readShort in interface DataInputEOFExceptionpublic int readUnsignedShort()
throws EOFException
readUnsignedShort in interface DataInputEOFExceptionpublic char readChar()
throws EOFException
readChar in interface DataInputEOFExceptionpublic int readInt()
throws EOFException
readInt in interface DataInputEOFExceptionpublic long readLong()
throws EOFException
readLong in interface DataInputEOFExceptionpublic float readFloat()
throws EOFException
readFloat in interface DataInputEOFExceptionpublic double readDouble()
throws EOFException
readDouble in interface DataInputEOFExceptionpublic String readUTF() throws EOFException
readUTF in interface DataInputEOFExceptionpublic String readString() throws EOFException
EOFExceptionCopyright © 2022 JBoss by Red Hat. All rights reserved.