Class BinaryMessage

java.lang.Object
org.openqa.selenium.remote.http.BinaryMessage
All Implemented Interfaces:
Message

public class BinaryMessage extends Object implements Message
  • Constructor Details

    • BinaryMessage

      public BinaryMessage(ByteBuffer data)
    • BinaryMessage

      public BinaryMessage(byte[] data)
  • Method Details

    • wrap

      public static BinaryMessage wrap(byte[] data)
      Returns a BinaryMessage backed directly by data with no defensive copy. The caller transfers ownership of the array — once wrapped it must not be mutated, otherwise a downstream reader will see the mutation. Intended for callers that have just produced a fresh array (for example ByteArrayOutputStream.toByteArray()) and want to avoid the second allocation that the public constructor performs.
    • data

      public byte[] data()