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
IOException
public void readFrom(DataInputStream is) throws IOException
IOException
private void writeObject(ObjectOutputStream out) throws IOException
IOException
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public int getEncodableClassId()
Encodable
getEncodableClassId
in interface Encodable
public int getEncodedSize()
Encodable
getEncodedSize
in interface Encodable
public void encode(Encoder encoder) throws Exception
Encodable
Copyright © 2022 ScalAgent D.T.. All rights reserved.