Package net.shibboleth.metadata
Class SimpleItemCollectionSerializer<T>
java.lang.Object
net.shibboleth.metadata.SimpleItemCollectionSerializer<T>
- Type Parameters:
T- type of data contained in each item
- All Implemented Interfaces:
ItemCollectionSerializer<T>
@Immutable
public class SimpleItemCollectionSerializer<T>
extends Object
implements ItemCollectionSerializer<T>
A simple
ItemCollectionSerializer which just serializes each Item
in turn.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ItemSerializer<T>TheItemSerializerto use on eachItemin turn. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidserializeCollection(Collection<Item<T>> items, OutputStream output) Serializes the collection ofItems to the given output stream.
-
Field Details
-
serializer
TheItemSerializerto use on eachItemin turn.
-
-
Constructor Details
-
SimpleItemCollectionSerializer
Constructor.- Parameters:
ser-ItemSerializerto use on eachItemin turn
-
-
Method Details
-
serializeCollection
public void serializeCollection(@Nonnull @NonnullElements Collection<Item<T>> items, @Nonnull OutputStream output) throws IOException Description copied from interface:ItemCollectionSerializerSerializes the collection ofItems to the given output stream.- Specified by:
serializeCollectionin interfaceItemCollectionSerializer<T>- Parameters:
items-CollectionofItems to be serializedoutput- output stream to which the serialized form of theItemcollection will be written- Throws:
IOException- if an I/O exception occurs during serialization
-