Class BinaryMessage
java.lang.Object
org.openqa.selenium.remote.http.BinaryMessage
- All Implemented Interfaces:
Message
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]data()static BinaryMessagewrap(byte[] data) Returns aBinaryMessagebacked directly bydatawith no defensive copy.
-
Constructor Details
-
BinaryMessage
-
BinaryMessage
public BinaryMessage(byte[] data)
-
-
Method Details
-
wrap
Returns aBinaryMessagebacked directly bydatawith 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 exampleByteArrayOutputStream.toByteArray()) and want to avoid the second allocation that the public constructor performs. -
data
public byte[] data()
-