public abstract class MessageInput extends Object
| Constructor and Description |
|---|
MessageInput(byte[] data)
Initialize the message input
|
MessageInput(MessageOutput instance)
Initialize the message output
|
| Modifier and Type | Method and Description |
|---|---|
MessageInput |
clone(Map<DataType,Set<String>> remove)
Clone the message input without the specified keys
|
abstract boolean |
getBoolean(String key)
Get the data object
|
abstract byte[] |
getBytes(String key)
Get the data object
|
abstract char[] |
getCharacters(String key)
Get the data object
|
abstract @Nullable Number |
getNumber(String key)
Get the data object
|
MessageOutput |
getOutput()
Get the serialized message output
|
abstract @Nullable CharSequence |
getSequence(String key)
Get the data object
|
abstract @Nullable Serializable |
getSerialized(String key)
Get the data object
|
@Nullable String |
getString(String key)
Get the data object
|
public MessageInput(byte[] data)
data - the serialized base64 message outputpublic MessageInput(MessageOutput instance)
instance - the message output@Nullable public abstract @Nullable Serializable getSerialized(String key)
key - the data key@Nullable public abstract @Nullable CharSequence getSequence(String key)
key - the data key@Nullable public @Nullable String getString(String key)
key - the data keypublic abstract boolean getBoolean(String key)
key - the data key@Nullable public abstract @Nullable Number getNumber(String key)
key - the data keypublic abstract char[] getCharacters(String key)
key - the data keypublic abstract byte[] getBytes(String key)
key - the data keypublic final MessageOutput getOutput()
public final MessageInput clone(Map<DataType,Set<String>> remove)
remove - the keys to removeCopyright © 2022. All rights reserved.