public final class ByteSequence extends Object
| Modifier and Type | Field and Description |
|---|---|
static ByteSequence |
EMPTY |
static ByteSequence |
NAMESPACE_DELIMITER |
| 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 |
isEmpty() |
int |
size() |
boolean |
startsWith(ByteSequence prefix) |
String |
toString(Charset charset) |
public static final ByteSequence EMPTY
public static final ByteSequence NAMESPACE_DELIMITER
public boolean startsWith(ByteSequence prefix)
public byte[] getBytes()
public boolean isEmpty()
public int size()
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.