public class ShortString extends Object implements EncodableData
| Constructor and Description |
|---|
ShortString(long length,
byte[] content) |
ShortString(long length,
char[] content) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Compares
ShortString underlying byte array content. |
long |
getSize() |
int |
hashCode()
Hashcode of the underlying byte array content.
|
static ShortString |
parse(io.netty.buffer.ByteBuf buf) |
static ShortString |
parseString(String data) |
String |
toString() |
void |
write(io.netty.buffer.ByteBuf buf) |
public ShortString(long length,
char[] content)
public ShortString(long length,
byte[] content)
public long getSize()
getSize in interface EncodableDatapublic void write(io.netty.buffer.ByteBuf buf)
write in interface EncodableDatapublic static ShortString parse(io.netty.buffer.ByteBuf buf)
public static ShortString parseString(String data)
public boolean equals(Object obj)
ShortString underlying byte array content.Copyright © 2017 WSO2. All rights reserved.