Provides deserialization methods for primitives types, arrays of primitive types Portable, IdentifiedDataSerializable and custom serializable types. More...
#include <ObjectDataInput.h>
Public Member Functions | |
ObjectDataInput (pimpl::DataInput &, pimpl::PortableContext &) | |
Internal API. More... | |
void | readFully (std::vector< byte > &byteArray) |
fills all content to given byteArray More... | |
int | skipBytes (int i) |
bool | readBoolean () |
byte | readByte () |
short | readShort () |
char | readChar () |
int | readInt () |
int64_t | readLong () |
float | readFloat () |
double | readDouble () |
std::auto_ptr< std::string > | readUTF () |
std::auto_ptr< std::vector < byte > > | readByteArray () |
std::auto_ptr< std::vector < bool > > | readBooleanArray () |
std::auto_ptr< std::vector < char > > | readCharArray () |
std::auto_ptr< std::vector< int > > | readIntArray () |
std::auto_ptr< std::vector < long > > | readLongArray () |
std::auto_ptr< std::vector < double > > | readDoubleArray () |
std::auto_ptr< std::vector < float > > | readFloatArray () |
std::auto_ptr< std::vector < short > > | readShortArray () |
std::auto_ptr< std::vector < std::string > > | readUTFArray () |
template<typename T > | |
std::auto_ptr< T > | readObject () |
Object can be Portable, IdentifiedDataSerializable or custom serializable for custom serialization. More... | |
pimpl::Data | readData () |
int | position () |
void | position (int newPos) |
Move cursor to given index. More... | |
template<> | |
HAZELCAST_API void | readInternal (int typeId, byte *object) |
template<> | |
HAZELCAST_API void | readInternal (int typeId, bool *object) |
template<> | |
HAZELCAST_API void | readInternal (int typeId, char *object) |
template<> | |
HAZELCAST_API void | readInternal (int typeId, short *object) |
template<> | |
HAZELCAST_API void | readInternal (int typeId, int *object) |
template<> | |
HAZELCAST_API void | readInternal (int typeId, long *object) |
template<> | |
HAZELCAST_API void | readInternal (int typeId, float *object) |
template<> | |
HAZELCAST_API void | readInternal (int typeId, double *object) |
template<> | |
HAZELCAST_API void | readInternal (int typeId, std::string *object) |
template<> | |
void | readInternal (int typeId, byte *object) |
template<> | |
void | readInternal (int typeId, bool *object) |
template<> | |
void | readInternal (int typeId, char *object) |
template<> | |
void | readInternal (int typeId, short *object) |
template<> | |
void | readInternal (int typeId, int *object) |
template<> | |
void | readInternal (int typeId, long *object) |
template<> | |
void | readInternal (int typeId, float *object) |
template<> | |
void | readInternal (int typeId, double *object) |
template<> | |
void | readInternal (int typeId, std::string *object) |
Provides deserialization methods for primitives types, arrays of primitive types Portable, IdentifiedDataSerializable and custom serializable types.
hazelcast::client::serialization::ObjectDataInput::ObjectDataInput | ( | pimpl::DataInput & | dataInput, |
pimpl::PortableContext & | context | ||
) |
Internal API.
Constructor
int hazelcast::client::serialization::ObjectDataInput::position | ( | ) |
void hazelcast::client::serialization::ObjectDataInput::position | ( | int | newPos | ) |
Move cursor to given index.
newPos | new position index to be set |
bool hazelcast::client::serialization::ObjectDataInput::readBoolean | ( | ) |
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< bool > > hazelcast::client::serialization::ObjectDataInput::readBooleanArray | ( | ) |
IOException | if it reaches end of file before finish reading |
byte hazelcast::client::serialization::ObjectDataInput::readByte | ( | ) |
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< byte > > hazelcast::client::serialization::ObjectDataInput::readByteArray | ( | ) |
IOException | if it reaches end of file before finish reading |
char hazelcast::client::serialization::ObjectDataInput::readChar | ( | ) |
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< char > > hazelcast::client::serialization::ObjectDataInput::readCharArray | ( | ) |
IOException | if it reaches end of file before finish reading |
pimpl::Data hazelcast::client::serialization::ObjectDataInput::readData | ( | ) |
IOException | if it reaches end of file before finish reading |
double hazelcast::client::serialization::ObjectDataInput::readDouble | ( | ) |
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< double > > hazelcast::client::serialization::ObjectDataInput::readDoubleArray | ( | ) |
IOException | if it reaches end of file before finish reading |
float hazelcast::client::serialization::ObjectDataInput::readFloat | ( | ) |
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< float > > hazelcast::client::serialization::ObjectDataInput::readFloatArray | ( | ) |
IOException | if it reaches end of file before finish reading |
void hazelcast::client::serialization::ObjectDataInput::readFully | ( | std::vector< byte > & | byteArray | ) |
fills all content to given byteArray
byteArray | to fill the data in |
int hazelcast::client::serialization::ObjectDataInput::readInt | ( | ) |
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< int > > hazelcast::client::serialization::ObjectDataInput::readIntArray | ( | ) |
IOException | if it reaches end of file before finish reading |
int64_t hazelcast::client::serialization::ObjectDataInput::readLong | ( | ) |
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< long > > hazelcast::client::serialization::ObjectDataInput::readLongArray | ( | ) |
IOException | if it reaches end of file before finish reading |
|
inline |
Object can be Portable, IdentifiedDataSerializable or custom serializable for custom serialization.
IOException | if it reaches end of file before finish reading |
short hazelcast::client::serialization::ObjectDataInput::readShort | ( | ) |
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< short > > hazelcast::client::serialization::ObjectDataInput::readShortArray | ( | ) |
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::string > hazelcast::client::serialization::ObjectDataInput::readUTF | ( | ) |
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< std::string > > hazelcast::client::serialization::ObjectDataInput::readUTFArray | ( | ) |
IOException | if it reaches end of file before finish reading |
int hazelcast::client::serialization::ObjectDataInput::skipBytes | ( | int | i | ) |
i | number of bytes to skip |