public class MarshalledValue extends Object implements Externalizable
Constructor and Description |
---|
MarshalledValue()
Exposed for externalization.
|
MarshalledValue(Object obj) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Object |
get() |
int |
hashCode()
Return a hash code for the serialized form of the value.
|
void |
readExternal(ObjectInput in)
The object implements the readExternal method to restore its
contents by calling the methods of DataInput for primitive
types and readObject for objects, strings and arrays.
|
int |
size() |
byte[] |
toByteArray() |
void |
writeExternal(ObjectOutput out)
The object implements the writeExternal method to save its contents
by calling the methods of DataOutput for its primitive values or
calling the writeObject method of ObjectOutput for objects, strings,
and arrays.
|
public MarshalledValue()
public MarshalledValue(Object obj) throws IOException
IOException
public Object get() throws IOException, ClassNotFoundException
IOException
ClassNotFoundException
public byte[] toByteArray()
public int size()
public int hashCode()
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
in
- the stream to read data from in order to restore the objectIOException
- if I/O errors occurClassNotFoundException
- If the class for an object being
restored cannot be found.public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
out
- the stream to write the object toIOException
- Includes any I/O exceptions that may occurCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.