Package playn.core

Class Net.Response.Binary

java.lang.Object
playn.core.Net.Response
playn.core.Net.Response.Binary
Enclosing class:
Net.Response

public abstract static class Net.Response.Binary extends Net.Response
Used to deliver binary response data.
  • Constructor Details

    • Binary

      public Binary(int responseCode, byte[] payload, String encoding)
  • Method Details

    • payloadString

      public String payloadString()
      Description copied from class: Net.Response
      Returns the response payload as a string, decoded using the character set specified in the response's content type.
      Specified by:
      payloadString in class Net.Response
    • payload

      public byte[] payload()
      Description copied from class: Net.Response
      Returns the response payload as raw bytes. Note: this is not available on the HTML backend.
      Overrides:
      payload in class Net.Response