org.dspace.content.packager
Class AbstractMETSDisseminator.MdStreamCache

java.lang.Object
  extended by org.dspace.content.packager.AbstractMETSDisseminator.MdStreamCache
Enclosing class:
AbstractMETSDisseminator

protected static class AbstractMETSDisseminator.MdStreamCache
extends Object

Wrapper for a table of streams to add to the package, such as mdRef'd metadata. Key is relative pathname of file, value is InputStream with contents to put in it. Some superclasses will put streams in this table when adding an mdRef element to e.g. a rightsMD segment.


Constructor Summary
protected AbstractMETSDisseminator.MdStreamCache()
           
 
Method Summary
 void addStream(edu.harvard.hul.ois.mets.MdRef key, InputStream md)
           
 void close()
           
 Map<edu.harvard.hul.ois.mets.MdRef,InputStream> getMap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractMETSDisseminator.MdStreamCache

protected AbstractMETSDisseminator.MdStreamCache()
Method Detail

addStream

public void addStream(edu.harvard.hul.ois.mets.MdRef key,
                      InputStream md)

getMap

public Map<edu.harvard.hul.ois.mets.MdRef,InputStream> getMap()

close

public void close()
           throws IOException
Throws:
IOException


Copyright © 2012 DuraSpace. All Rights Reserved.