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