Package ej.rcommand
Interface RemoteConnection
-
- All Superinterfaces:
CommandReader,CommandSender
- All Known Implementing Classes:
DynamicRemoteConnection,SocketRemoteConnection,StreamRemoteConnection
public interface RemoteConnection extends CommandSender, CommandReader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Closes the connection.List<Object>readParameters()Reads the parameters of a command.voidsendParams(List<Object> params)Sends the given parameters.-
Methods inherited from interface ej.rcommand.CommandReader
readBoolean, readByteArray, readCommand, readDouble, readFloat, readInputStream, readInt, readLong, readObject, readString, skipParameters
-
Methods inherited from interface ej.rcommand.CommandSender
flushCommand, getInputStream, getOutputStream, sendBoolean, sendByteArray, sendByteArray, sendDouble, sendFloat, sendInputStream, sendInt, sendLong, sendString, startCommand
-
-
-
-
Method Detail
-
readParameters
List<Object> readParameters() throws IOException
Reads the parameters of a command.Method
CommandReader.skipParameters()must be called after to be ready to read the following command.- Returns:
- list of the parameters.
- Throws:
IOException
-
sendParams
void sendParams(List<Object> params)
Sends the given parameters.- Parameters:
params- the list of parameters to send.
-
close
void close()
Closes the connection.
-
-