Package io.fabric8.mockwebserver.http
Class ByteString
- java.lang.Object
-
- io.fabric8.mockwebserver.http.ByteString
-
public class ByteString extends Object
Deprecated.used as parameter inWebSocketListenerandWebSocket. Alternative methods provided in those classes should be used instead.Compatibility layer for OkHttp.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ByteStringencodeUtf8(String s)Deprecated.Returns a newByteStringcontaining theUTF-8bytes ofs.static ByteStringof(byte... data)Deprecated.Returns a newByteStringcontaining a clone of the bytes ofdata.byte[]toByteArray()Deprecated.Returns a byte array containing a copy of the bytes in thisByteString.Stringutf8()Deprecated.Constructs a newStringby decoding the bytes asUTF-8.
-
-
-
Method Detail
-
of
public static ByteString of(byte... data)
Deprecated.Returns a newByteStringcontaining a clone of the bytes ofdata.
-
encodeUtf8
public static ByteString encodeUtf8(String s)
Deprecated.Returns a newByteStringcontaining theUTF-8bytes ofs.
-
utf8
public final String utf8()
Deprecated.Constructs a newStringby decoding the bytes asUTF-8.
-
toByteArray
public final byte[] toByteArray()
Deprecated.Returns a byte array containing a copy of the bytes in thisByteString.
-
-