com.github.libxjava.util
Class SerialisableVector<E>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<E>
com.github.libxjava.util.SerialisableVector<E>
- All Implemented Interfaces:
- ISerialisable, Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess
public class SerialisableVector<E>
- extends Vector<E>
- implements ISerialisable
A serialisable collection type.
It extends the class Vector with serialisation facilities.
- Version:
- libxjava-jse5 - 0.2
- Author:
- Marcel Patzlaff
- See Also:
- Serialized Form
|
Method Summary |
void |
deserialise(IDeserialiser in)
Defines the protocol to deserialise data and fill the fields
of the implementing class. |
void |
serialise(ISerialiser out)
This method defines the serialisation protocol of the
implementing class. |
| Methods inherited from class java.util.Vector |
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize |
SerialisableVector
public SerialisableVector()
SerialisableVector
public SerialisableVector(int initialCapacity)
SerialisableVector
public SerialisableVector(int initialCapacity,
int capacityIncrement)
deserialise
public void deserialise(IDeserialiser in)
throws IOException,
ClassNotFoundException
- Description copied from interface:
ISerialisable
- Defines the protocol to deserialise data and fill the fields
of the implementing class.
Ensure that the protocols defined here and in ISerialisable.serialise(ISerialiser) are
compatible!
- Specified by:
deserialise in interface ISerialisable
- Parameters:
in - the deserialiser to read the content from
- Throws:
IOException - if problems occur during the deserialisation process
ClassNotFoundException - if class cannot be loaded and instantiated- See Also:
IDeserialiser.readObject()
serialise
public void serialise(ISerialiser out)
throws IOException
- Description copied from interface:
ISerialisable
- This method defines the serialisation protocol of the
implementing class.
- Specified by:
serialise in interface ISerialisable
- Parameters:
out - the serialiser to write the content to
- Throws:
IOException - if problems occur during the serialisation process- See Also:
ISerialiser.writeObject(Object)
Copyright © 2010 Marcel Patzlaff. All Rights Reserved.