public interface RemoteConnection extends CommandSender, CommandReader
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the connection.
|
java.util.List<java.lang.Object> |
readParameters()
Reads the parameters of a command.
|
void |
sendParams(java.util.List<java.lang.Object> params)
Sends the given parameters.
|
flushCommand, getInputStream, getOutputStream, sendBoolean, sendByteArray, sendByteArray, sendByteArrayAsInputStream, sendDouble, sendFloat, sendInputStream, sendInt, sendLong, sendString, startCommand
readBoolean, readByteArray, readByteArrayAsInputStream, readCommand, readDouble, readFloat, readInputStream, readInt, readLong, readObject, readString, skipParameters
java.util.List<java.lang.Object> readParameters() throws java.io.IOException
Method CommandReader.skipParameters()
must be called after to be ready to read the following command.
java.io.IOException
void sendParams(java.util.List<java.lang.Object> params)
params
- the list of parameters to send.void close()