public class Arc2DSerializer extends Object implements SerializeMethod
Constructor and Description |
---|
Arc2DSerializer()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Class |
getObjectClass()
The class of the object, which this object can serialize.
|
Object |
readObject(ObjectInputStream stream)
Reads the object from the object input stream.
|
void |
writeObject(Object o,
ObjectOutputStream stream)
Writes a serializable object description to the given object output stream.
|
public void writeObject(Object o, ObjectOutputStream stream) throws IOException
writeObject
in interface SerializeMethod
o
- the to be serialized object.stream
- the outputstream that should receive the object.IOException
- if an I/O error occured.public Object readObject(ObjectInputStream stream) throws IOException, ClassNotFoundException
readObject
in interface SerializeMethod
stream
- the object input stream from where to read the serialized data.IOException
- if reading the stream failed.ClassNotFoundException
- if serialized object class cannot be found.public Class getObjectClass()
getObjectClass
in interface SerializeMethod
Copyright © 2019 Hitachi Vantara. All rights reserved.