public class ServerDataBox extends Object implements Serializable
| 构造器和说明 |
|---|
ServerDataBox()
Instantiates a new DataBox.
|
ServerDataBox(byte[] bytes)
Instantiates a new DataBox.
|
ServerDataBox(Object object)
Instantiates a new DataBox.
|
| 限定符和类型 | 方法和说明 |
|---|---|
int |
byteSize() |
boolean |
equals(Object o) |
Object |
extract()
transfer bytes to object
|
byte[] |
getBytes()
Get bytes byte [ ].
|
static byte[] |
getBytes(Object object) |
Object |
getObject()
Only when isInBytes() == false
|
int |
getSerialization()
Gets serialization.
|
boolean |
isInBytes()
Is in bytes boolean.
|
ServerDataBox |
object2bytes()
change object to bytes
|
void |
setBytes(byte[] bytes)
Set bytes byte [ ].
|
void |
setSerialization(int serial)
Sets serialization.
|
public ServerDataBox()
public ServerDataBox(Object object)
object - the objectpublic ServerDataBox(byte[] bytes)
bytes - the bytespublic boolean isInBytes()
public Object getObject()
public Object extract() throws IOException, ClassNotFoundException
IOException - the io exceptionClassNotFoundException - the class not found exceptionpublic ServerDataBox object2bytes()
public static byte[] getBytes(Object object)
public int byteSize()
public byte[] getBytes()
public void setBytes(byte[] bytes)
bytes - bytespublic int getSerialization()
public void setSerialization(int serial)
serial - the serialCopyright © 2023 The Ant Financial. All rights reserved.