Package org.dspace.content.packager
Class AbstractMETSDisseminator.MdStreamCache
- java.lang.Object
-
- 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 isInputStreamwith contents to put in it. Some superclasses will put streams in this table when adding an mdRef element to e.g. a rightsMD segment.
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<edu.harvard.hul.ois.mets.MdRef,InputStream>extraFiles
-
Constructor Summary
Constructors Modifier Constructor Description protectedMdStreamCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStream(edu.harvard.hul.ois.mets.MdRef key, InputStream md)voidclose()Map<edu.harvard.hul.ois.mets.MdRef,InputStream>getMap()
-
-
-
Field Detail
-
extraFiles
protected Map<edu.harvard.hul.ois.mets.MdRef,InputStream> extraFiles
-
-
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
-
-