T - type of data contained in each itempublic class SimpleItemCollectionSerializer<T> extends Object implements ItemCollectionSerializer<T>
ItemCollectionSerializer which just serializes each Item
in turn.| Modifier and Type | Field and Description |
|---|---|
private ItemSerializer<T> |
serializer
The
ItemSerializer to use on each Item in turn. |
| Constructor and Description |
|---|
SimpleItemCollectionSerializer(ItemSerializer<T> ser)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
serializeCollection(Collection<Item<T>> items,
OutputStream output)
Serializes the collection of
Items to the given output stream. |
private final ItemSerializer<T> serializer
ItemSerializer to use on each Item in turn.public SimpleItemCollectionSerializer(@Nonnull ItemSerializer<T> ser)
ser - ItemSerializer to use on each Item in turnpublic void serializeCollection(@Nonnull Collection<Item<T>> items, @Nonnull OutputStream output)
ItemCollectionSerializerItems to the given output stream.serializeCollection in interface ItemCollectionSerializer<T>items - Collection of Items to be serializedoutput - output stream to which the serialized form of the Item
collection will be writtenCopyright © 1999–2016. All rights reserved.