public interface ReadableMedia
| Modifier and Type | Method and Description |
|---|---|
boolean |
readBoolean() |
byte |
readByte() |
byte[] |
readByteArray() |
char |
readChar() |
char[] |
readCharArray() |
double |
readDouble() |
double[] |
readDoubleArray() |
float |
readFloat() |
float[] |
readFloatArray() |
int |
readInt() |
int[] |
readIntArray() |
long |
readLong() |
long[] |
readLongArray() |
<T> T |
readObject(Class<T> type) |
<T> T[] |
readObjectArray(Class<T> itemType) |
int |
readPackedInteger()
Reads packed positive integer (1-5 bytes)
|
void |
readRest(BinaryOutput output,
ArrayFactory arrayFactory)
Reads the rest of user object data till the end marker.
|
short |
readShort() |
short[] |
readShortArray() |
String |
readString() |
int readPackedInteger()
throws IOException
IOExceptionString readString() throws IOException
IOExceptionbyte readByte()
throws IOException
IOExceptionchar readChar()
throws IOException
IOExceptionshort readShort()
throws IOException
IOExceptionint readInt()
throws IOException
IOExceptionlong readLong()
throws IOException
IOExceptionfloat readFloat()
throws IOException
IOExceptiondouble readDouble()
throws IOException
IOExceptionboolean readBoolean()
throws IOException
IOException<T> T readObject(Class<T> type) throws IOException
IOExceptionbyte[] readByteArray()
throws IOException
IOExceptionchar[] readCharArray()
throws IOException
IOExceptionshort[] readShortArray()
throws IOException
IOExceptionint[] readIntArray()
throws IOException
IOExceptionlong[] readLongArray()
throws IOException
IOExceptionfloat[] readFloatArray()
throws IOException
IOExceptiondouble[] readDoubleArray()
throws IOException
IOException<T> T[] readObjectArray(Class<T> itemType) throws IOException
IOExceptionvoid readRest(BinaryOutput output, ArrayFactory arrayFactory) throws IOException
UserTypeInput.read(ReadableMedia, Class) i.e. after user type marker is extracted from input.
This method is designed to support multi-versioned object binaries.output - the output to write rest of object bytes to.arrayFactory - the array factory for temporal buffers creation.IOException - if reading error occurred (like end of stream, etc).Copyright © 2016. All rights reserved.