Class ClientNetworkInput

java.lang.Object
za.co.wethinkcode.robots.client.networking.ClientNetworkInput
All Implemented Interfaces:
AutoCloseable

public class ClientNetworkInput extends Object implements AutoCloseable
The abstracted networking component of the input into a client
  • Constructor Details

  • Method Details

    • cleanForPrinting

      public static String cleanForPrinting(String message)
      Clean the input coming in over the network

      This typically involves replacing the ServerAPI.DELIMITER

      Parameters:
      message - the message being received
      Returns:
      the cleaned output of the server.
    • readServerResponse

      public com.google.gson.JsonObject readServerResponse() throws IOException
      Throws:
      IOException
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Throws:
      IOException