public abstract class MessageOutput extends Object implements Serializable
| Constructor and Description |
|---|
MessageOutput()
Initialize the message input
|
MessageOutput(byte[] merge,
MergeType mt)
Initialize the message input
|
MessageOutput(@Nullable MessageOutput merge,
MergeType mt)
Initialize the message input
|
| Modifier and Type | Method and Description |
|---|---|
abstract byte[] |
compile()
Compile the message input
|
abstract boolean |
contains(String key,
DataType type)
Get if the message input contains the specified key
in the specified data type
|
abstract Set<String> |
getKeys(DataType type)
Get all the data keys for the specified data type
|
abstract void |
remove(String key,
DataType type)
Remove data from the specified type
|
abstract <T> void |
unsafeWrite(String key,
T data,
DataType type)
Write unsafely to the message input
|
abstract void |
write(String key,
boolean data)
Write data to the message input
|
abstract void |
write(String key,
byte[] data)
Write data to the message input
|
abstract void |
write(String key,
char... chars)
Write data to the message input
|
abstract void |
write(String key,
CharSequence data)
Write data to the message input
|
abstract void |
write(String key,
Number number)
Write data to the message input
|
abstract void |
writeSerializable(String key,
Serializable data)
Write data to the message input
|
public MessageOutput()
public MessageOutput(@Nullable
@Nullable MessageOutput merge,
MergeType mt)
merge - the already existing message inputmt - the merge type for the already existing message inputpublic MessageOutput(byte[] merge,
MergeType mt)
merge - the already existing message inputmt - the merge type for the already existing message inputpublic abstract void writeSerializable(String key, Serializable data)
key - the data keydata - the data to writepublic abstract void write(String key, CharSequence data)
key - the data keydata - the data ( character sequence ) to writepublic abstract void write(String key, boolean data)
key - the data keydata - the data ( boolean ) to writepublic abstract void write(String key, Number number)
key - the data keynumber - the data ( number ) to writepublic abstract void write(String key, char... chars)
key - the data keychars - the data ( characters ) to writepublic abstract void write(String key, byte[] data)
key - the data keydata - the data ( bytes ) to writepublic abstract <T> void unsafeWrite(String key, T data, DataType type)
T - the data typekey - the data keydata - the data to writetype - the data typepublic abstract void remove(String key, DataType type)
key - the data keytype - the data typepublic abstract Set<String> getKeys(DataType type)
type - the data typepublic abstract boolean contains(String key, DataType type)
key - the data keytype - the data typepublic abstract byte[] compile()
Copyright © 2022. All rights reserved.