edu.uiuc.ndiipp.hubandspoke.packager
Class Dspace2HubPackager
java.lang.Object
edu.uiuc.ndiipp.hubandspoke.packager.ToHubPackager
edu.uiuc.ndiipp.hubandspoke.packager.Dspace2HubPackager
public class Dspace2HubPackager
- extends ToHubPackager
Converts the output of a DSpace export into a Hub compatible package.
If a previous echodepmets.xml file exists it attempts to combine and
reconcile the metadata otherwise it creates a HaSProfile from scratch.
- Author:
- Matt Cordial
|
Method Summary |
boolean |
createHubPackage(java.io.File dir,
java.lang.String hubpath)
Creates a Hub Package from a DSpace dissemination by locating the Master
METS file for the package or creating a new one if it cannot be found. |
boolean |
createHubPackage(java.lang.String zippath,
java.lang.String unzippath,
java.lang.String hubpath)
|
boolean |
createHubPackage(java.util.zip.ZipFile zip,
java.lang.String unzippath,
java.lang.String hubpath)
|
boolean |
createHubPackage(java.util.zip.ZipInputStream zip,
java.lang.String unzippath,
java.lang.String hubpath)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DS_PREMIS_NS
public static final java.lang.String DS_PREMIS_NS
- See Also:
- Constant Field Values
DSPACE_METS_FILE_NAME
public static final java.lang.String DSPACE_METS_FILE_NAME
- See Also:
- Constant Field Values
Dspace2HubPackager
public Dspace2HubPackager()
createHubPackage
public boolean createHubPackage(java.util.zip.ZipInputStream zip,
java.lang.String unzippath,
java.lang.String hubpath)
throws PackagerException
- Throws:
PackagerException
createHubPackage
public boolean createHubPackage(java.util.zip.ZipFile zip,
java.lang.String unzippath,
java.lang.String hubpath)
throws PackagerException
- Specified by:
createHubPackage in class ToHubPackager
- Throws:
PackagerException
createHubPackage
public boolean createHubPackage(java.lang.String zippath,
java.lang.String unzippath,
java.lang.String hubpath)
throws PackagerException,
java.io.IOException
- Throws:
PackagerException
java.io.IOException
createHubPackage
public boolean createHubPackage(java.io.File dir,
java.lang.String hubpath)
throws PackagerException,
java.io.FileNotFoundException
- Creates a Hub Package from a DSpace dissemination by locating the Master
METS file for the package or creating a new one if it cannot be found.
A new EchoDep METS document is generated from the DSpace export METS. It
is compared to the most-recent EchoDep METS and any changes to the package
are noted (i.e., file names, sizes, and mime types).
- Parameters:
dir - - the directory where the package will livehubpath - -
- Returns:
- - true if the Hub Package creation was successful
- Throws:
PackagerException
java.io.FileNotFoundException
Copyright © 2006, University of Illinois.