net.shibboleth.metadata.dom
Class DomElementSerializer

java.lang.Object
  extended by net.shibboleth.metadata.dom.DomElementSerializer
All Implemented Interfaces:
ItemSerializer<DomElementItem>

@ThreadSafe
public class DomElementSerializer
extends Object
implements ItemSerializer<DomElementItem>

Very simple serializer that serializes the owning document of the first element of the given DomElementItem collection. All other elements of the collection are ignored.


Field Summary
private  Logger log
          Class logger.
 
Constructor Summary
DomElementSerializer()
           
 
Method Summary
 void serialize(Collection<DomElementItem> itemCollection, OutputStream output)
          Serializes the Item to the given output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private final Logger log
Class logger.

Constructor Detail

DomElementSerializer

public DomElementSerializer()
Method Detail

serialize

public void serialize(@Nonnull@NonnullElements
                      Collection<DomElementItem> itemCollection,
                      OutputStream output)
Serializes the Item to the given output stream.

Specified by:
serialize in interface ItemSerializer<DomElementItem>
Parameters:
itemCollection - collection of Items
output - output stream to which the Item will be written


Copyright © 1999-2012. All Rights Reserved.