|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectchemaxon.marvin.beans.MSketch
public class MSketch
Java independent serialization of the sketcher bean. Experimental!
The Swing and AWT ancestor classes of MSketchPane (like JComponent) have different serialVersionUID values in different Java versions, thus its simple serialization and deserialization with another Java version may not work. The workaround is to serialize class MSketch instead, which only extends Object and has a fixed serialVersionUID.
| Constructor Summary | |
|---|---|
MSketch()
Constructor used for deserialization. |
|
MSketch(MSketchPane p)
Constructor used for serialization. |
|
| Method Summary | |
|---|---|
MSketchPane |
getMSketchPane()
|
void |
readExternal(java.io.ObjectInput in)
Restores the sketcher's state. |
void |
writeExternal(java.io.ObjectOutput out)
Saves the sketcher's state. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MSketch()
public MSketch(MSketchPane p)
p - the sketcher bean to serialize| Method Detail |
|---|
public MSketchPane getMSketchPane()
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablein - the stream to read data from in order to restore the object
java.io.IOException - if I/O errors occur
java.lang.ClassNotFoundException - If the class for an object being
restored cannot be found.
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizableout - the stream to write the object to
java.io.IOException - Includes any I/O exceptions that may occur
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||