public final class EncodedString extends Object implements Serializable, Encodable
| Modifier and Type | Class and Description |
|---|---|
static class |
EncodedString.Factory |
| Modifier and Type | Field and Description |
|---|---|
private byte[] |
encodedString |
private String |
string |
BOOLEAN_ENCODED_SIZE, BYTE_ENCODED_SIZE, DOUBLE_ENCODED_SIZE, FLOAT_ENCODED_SIZE, INT_ENCODED_SIZE, LONG_ENCODED_SIZE, SHORT_ENCODED_SIZE| Constructor and Description |
|---|
EncodedString() |
EncodedString(String string) |
| Modifier and Type | Method and Description |
|---|---|
void |
decode(Decoder decoder)
Decodes the content of this object
|
void |
encode(Encoder encoder)
Encodes the content of this object
|
boolean |
equals(Object obj) |
int |
getEncodableClassId()
Returns a unique class identifier.
|
int |
getEncodedSize()
Returns the size of the byte array that results from the encoding of this object.
|
String |
getString() |
int |
hashCode() |
void |
readFrom(DataInputStream is) |
private void |
readObject(ObjectInputStream in) |
String |
toString() |
private void |
writeObject(ObjectOutputStream out) |
void |
writeTo(DataOutputStream os) |
private String string
private byte[] encodedString
public EncodedString()
public EncodedString(String string)
public String getString()
public void writeTo(DataOutputStream os) throws IOException
IOExceptionpublic void readFrom(DataInputStream is) throws IOException
IOExceptionprivate void writeObject(ObjectOutputStream out) throws IOException
IOExceptionprivate void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic int getEncodableClassId()
EncodablegetEncodableClassId in interface Encodablepublic int getEncodedSize()
EncodablegetEncodedSize in interface Encodablepublic void encode(Encoder encoder) throws Exception
EncodableCopyright © 2022 ScalAgent D.T.. All rights reserved.