Class ClientNetworkInput
java.lang.Object
za.co.wethinkcode.robots.client.networking.ClientNetworkInput
- All Implemented Interfaces:
AutoCloseable
The abstracted networking component of the input into a client
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcleanForPrinting(String message) Clean the input coming in over the networkvoidclose()com.google.gson.JsonObject
-
Constructor Details
-
ClientNetworkInput
- Throws:
IOException
-
-
Method Details
-
cleanForPrinting
Clean the input coming in over the networkThis typically involves replacing the
ServerAPI.DELIMITER- Parameters:
message- the message being received- Returns:
- the cleaned output of the server.
-
readServerResponse
- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
IOException
-