Provides deserialization methods for primitives types, arrays of primitive types Portable, IdentifiedDataSerializable and custom serializable types.
More...
#include <ObjectDataInput.h>
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 |
( |
| ) |
|
- Returns
- current position index
void hazelcast::client::serialization::ObjectDataInput::position |
( |
int |
newPos | ) |
|
Move cursor to given index.
- Parameters
-
newPos | new position index to be set |
bool hazelcast::client::serialization::ObjectDataInput::readBoolean |
( |
| ) |
|
- Returns
- the boolean read
- Exceptions
-
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< bool > > hazelcast::client::serialization::ObjectDataInput::readBooleanArray |
( |
| ) |
|
- Returns
- the boolean array read
- Exceptions
-
IOException | if it reaches end of file before finish reading |
byte hazelcast::client::serialization::ObjectDataInput::readByte |
( |
| ) |
|
- Returns
- the byte read
- Exceptions
-
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< byte > > hazelcast::client::serialization::ObjectDataInput::readByteArray |
( |
| ) |
|
- Returns
- the byte array read
- Exceptions
-
IOException | if it reaches end of file before finish reading |
char hazelcast::client::serialization::ObjectDataInput::readChar |
( |
| ) |
|
- Returns
- the char read
- Exceptions
-
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< char > > hazelcast::client::serialization::ObjectDataInput::readCharArray |
( |
| ) |
|
- Returns
- the char array read
- Exceptions
-
IOException | if it reaches end of file before finish reading |
pimpl::Data hazelcast::client::serialization::ObjectDataInput::readData |
( |
| ) |
|
- Returns
- the data read
- Exceptions
-
IOException | if it reaches end of file before finish reading |
double hazelcast::client::serialization::ObjectDataInput::readDouble |
( |
| ) |
|
- Returns
- the double read
- Exceptions
-
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< double > > hazelcast::client::serialization::ObjectDataInput::readDoubleArray |
( |
| ) |
|
- Returns
- the double array read
- Exceptions
-
IOException | if it reaches end of file before finish reading |
float hazelcast::client::serialization::ObjectDataInput::readFloat |
( |
| ) |
|
- Returns
- the boolean read
- Exceptions
-
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< float > > hazelcast::client::serialization::ObjectDataInput::readFloatArray |
( |
| ) |
|
- Returns
- the float array read
- Exceptions
-
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
- Parameters
-
byteArray | to fill the data in |
int hazelcast::client::serialization::ObjectDataInput::readInt |
( |
| ) |
|
- Returns
- the int read
- Exceptions
-
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< int > > hazelcast::client::serialization::ObjectDataInput::readIntArray |
( |
| ) |
|
- Returns
- the int array read
- Exceptions
-
IOException | if it reaches end of file before finish reading |
long hazelcast::client::serialization::ObjectDataInput::readLong |
( |
| ) |
|
- Returns
- the long read
- Exceptions
-
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< long > > hazelcast::client::serialization::ObjectDataInput::readLongArray |
( |
| ) |
|
- Returns
- the long array read
- Exceptions
-
IOException | if it reaches end of file before finish reading |
template<typename T >
boost::shared_ptr<T> hazelcast::client::serialization::ObjectDataInput::readObject |
( |
| ) |
|
|
inline |
short hazelcast::client::serialization::ObjectDataInput::readShort |
( |
| ) |
|
- Returns
- the short read
- Exceptions
-
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< short > > hazelcast::client::serialization::ObjectDataInput::readShortArray |
( |
| ) |
|
- Returns
- the short array read
- Exceptions
-
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::string > hazelcast::client::serialization::ObjectDataInput::readUTF |
( |
| ) |
|
- Returns
- the utf string read as an ascii string
- Exceptions
-
IOException | if it reaches end of file before finish reading |
std::auto_ptr< std::vector< std::string > > hazelcast::client::serialization::ObjectDataInput::readUTFArray |
( |
| ) |
|
- Returns
- the array of strings
- Exceptions
-
IOException | if it reaches end of file before finish reading |
int hazelcast::client::serialization::ObjectDataInput::skipBytes |
( |
int |
i | ) |
|
The documentation for this class was generated from the following files:
- hazelcast/include/hazelcast/client/serialization/ObjectDataInput.h
- hazelcast/src/hazelcast/client/serialization/ObjectDataInput.cpp