|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.util.io.NbMarshalledObject
Object that holds serialized reference to another object. Inspirated by java.rmi.MarshalledObject but modified to work with NetBeans and its modules. So no annotations are stored with the bytestream and when the object is deserialized it is assumed to be produced by the core IDE or one of installed modules or it is located in the repository.
Constructor Summary | |
NbMarshalledObject(Object obj)
Creates a new NbMarshalledObject that contains the
serialized representation of the provided object. |
Method Summary | |
boolean |
equals(Object obj)
Two objects are equal if the hold the same serialized representation. |
Object |
get()
Returns a new copy of the contained marshalledobject. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public NbMarshalledObject(Object obj) throws IOException
NbMarshalledObject
that contains the
serialized representation of the provided object.
obj
- the object to be serialized (must be serializable)
IOException
- the object is not serializableMethod Detail |
public Object get() throws IOException, ClassNotFoundException
IOException
- on any I/O problem
ClassNotFoundException
- if the class of the object cannot be foundpublic int hashCode()
public boolean equals(Object obj)
obj
- the object to compare with this MarshalledObject
true
if the objects are serialized into the same bytestreams
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |