List<T> list = new ArrayList<T>(collectionLength);
for (int i = 0; i < collectionLength; i++){
T element = serializer.createInstance();
element = serializer.deserialize(element, new InputViewObjectInputStreamWrapper(in));
list.add(element);
}
dataSet = list;
}