public final class ByteSequence extends Object
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static ByteSequence |
from(byte[] source) |
static ByteSequence |
from(com.google.protobuf.ByteString source) |
static ByteSequence |
from(String source,
Charset charset)
Create new ByteSequence from a String.
|
byte[] |
getBytes() |
int |
hashCode() |
boolean |
startsWith(ByteSequence prefix) |
String |
toString(Charset charset) |
public boolean startsWith(ByteSequence prefix)
public byte[] getBytes()
public static ByteSequence from(String source, Charset charset)
source - input Stringcharset - the character set to use to transform the String into bytespublic static ByteSequence from(com.google.protobuf.ByteString source)
public static ByteSequence from(byte[] source)
Copyright © 2019. All rights reserved.