Constructor and Description |
---|
BEString(byte[] content) |
BEString(String content) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
byte[] |
getContent() |
BEType |
getType() |
byte[] |
getValue() |
String |
getValueAsString() |
int |
hashCode() |
String |
toString() |
void |
writeTo(OutputStream out)
Write this object's contents to the provided stream (excluding type prefix and terminator).
|
public BEString(byte[] content)
content
- Binary representation of this string, as read from source.
It is also the value of this string, being a UTF-8 encoded byte array.public BEString(String content)
public BEType getType()
public byte[] getContent()
getContent
in interface BEObject<byte[]>
public byte[] getValue()
public void writeTo(OutputStream out) throws IOException
BEObject
writeTo
in interface BEObject<byte[]>
IOException
public String getValueAsString()
Copyright © 2016–2021. All rights reserved.