com.github.libxjava.util
Class SerialisableArrayList<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<E>
              extended by com.github.libxjava.util.BasicArrayList<E>
                  extended by com.github.libxjava.util.SerialisableArrayList<E>
All Implemented Interfaces:
ISerialisable, Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess

public class SerialisableArrayList<E>
extends BasicArrayList<E>
implements ISerialisable

Version:
libxjava-jse5 - 0.2
Author:
Marcel Patzlaff
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
SerialisableArrayList()
           
SerialisableArrayList(int initialCapacity)
           
 
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 com.github.libxjava.util.BasicArrayList
add, add, clear, contains, ensureCapacity, enumeration, get, indexOf, isEmpty, lastIndexOf, remove, remove, set, size, toString, trimToSize
 
Methods inherited from class java.util.ArrayList
addAll, addAll, clone, removeRange, toArray, toArray
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

SerialisableArrayList

public SerialisableArrayList()

SerialisableArrayList

public SerialisableArrayList(int initialCapacity)
Method Detail

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.