public class MessageDataInput extends MessageInput
| Constructor and Description |
|---|
MessageDataInput(byte[] data)
Initialize the message input
|
MessageDataInput(MessageOutput out)
Initialize the message input
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
getBoolean(String key)
Get the data object
|
byte[] |
getBytes(String key)
Get the data object
|
char[] |
getCharacters(String key)
Get the data object
|
@Nullable Number |
getNumber(String key)
Get the data object
|
@Nullable CharSequence |
getSequence(String key)
Get the data object
|
@Nullable Serializable |
getSerialized(String key)
Get the data object
|
String |
toString()
Returns a string representation of the object.
|
clone, getOutput, getStringpublic MessageDataInput(byte[] data)
data - the serialized base64 message outputpublic MessageDataInput(MessageOutput out)
out - the message output@Nullable public @Nullable Serializable getSerialized(String key)
getSerialized in class MessageInputkey - the data key@Nullable public @Nullable CharSequence getSequence(String key)
getSequence in class MessageInputkey - the data keypublic boolean getBoolean(String key)
getBoolean in class MessageInputkey - the data key@Nullable public @Nullable Number getNumber(String key)
getNumber in class MessageInputkey - the data keypublic char[] getCharacters(String key)
getCharacters in class MessageInputkey - the data keypublic byte[] getBytes(String key)
getBytes in class MessageInputkey - the data keypublic String toString()
toString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
Copyright © 2022. All rights reserved.