public interface CommandSender
Modifier and Type | Method and Description |
---|---|
void |
flushCommand()
Ends the command frame.
|
java.io.InputStream |
getInputStream()
Get the InputStream used by the instance.
|
java.io.OutputStream |
getOutputStream()
Get the OuputStream used by the instance.
|
void |
sendBoolean(boolean b)
Sends a boolean parameter.
|
void |
sendByteArray(byte[] a)
Sends a byte array parameter.
|
void |
sendByteArray(byte[] buffer,
int offset,
int length)
Sends a byte array parameter with offset and length.
|
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.void sendByteArray(byte[] buffer, int offset, int length)
buffer
- the byte array to send.offset
- offset in the byte array.length
- data length 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()
java.io.OutputStream getOutputStream()
java.io.InputStream getInputStream()