public final class Utf8String extends Object
Constructor and Description |
---|
Utf8String(byte... bytes)
Ctor.
|
Utf8String(String string)
Ctor.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
bytes()
Encodes string value into a sequence of bytes using UTF-8 charset.
|
String |
string()
Returns string value.
|
public Utf8String(String string)
string
- String valuepublic Utf8String(byte... bytes)
bytes
- Bytes to construct UTF-8 string valuepublic byte[] bytes()
public String string()
Copyright © 2015–2018 Take. All rights reserved.