public interface CommandSender
Modifier and Type | Method and Description |
---|---|
void |
flushCommand()
Ends the command frame.
|
void |
sendBoolean(boolean b)
Sends a boolean parameter.
|
void |
sendByteArray(byte[] a)
Sends a byte array parameter.
|
void |
sendByteArrayAsInputStream(java.io.InputStream is)
Deprecated.
Use sendByteArray or sendInputStream instead.
|
void |
sendDouble(double d)
Sends a double parameter.
|
void |
sendFloat(float f)
Sends a float parameter.
|
void |
sendInputStream(java.io.InputStream is)
Sends an input stream.
|
void |
sendInt(int i)
Sends an integer parameter.
|
void |
sendLong(long l)
Sends a long parameter.
|
void |
sendString(java.lang.String string)
Sends a string parameter.
|
void |
startCommand(java.lang.String command)
Starts a command.
|
void startCommand(java.lang.String command)
A command can be followed by arguments.
command
- the command name.void sendString(java.lang.String string)
string
- the string to send.void sendLong(long l)
l
- the long to send.void sendInt(int i)
i
- the integer to send.void sendFloat(float f)
f
- the float to send.void sendDouble(double d)
d
- the double to send.void sendBoolean(boolean b)
b
- the boolean to send.void sendByteArray(byte[] a)
a
- the byte array to send.@Deprecated void sendByteArrayAsInputStream(java.io.InputStream is)
The given input stream is fully read.
is
- the input stream to send.void sendInputStream(java.io.InputStream is)
is
- the input stream to send.void flushCommand()