uk.ac.cam.spectra.spectrasub
Interface Packager

All Known Implementing Classes:
DSpaceMETSPackager

public interface Packager

Interface for components that encode metadata, write manifests and bundle resources into archives.

Author:
ojd20

Method Summary
 FileAndType getFileAndType(java.lang.String packageId, java.lang.String filename)
           
 java.lang.String getManifestName(DataPackage p)
          Get the path of the manifest file inside the package.
 void transcodeAndSerialize(DataPackage pkg, java.io.File destinationFile)
          Transcode the metadata of package into the final manifest format, and archive (by an implementation specific method) the entire package contents into the destination file.
 

Method Detail

transcodeAndSerialize

void transcodeAndSerialize(DataPackage pkg,
                           java.io.File destinationFile)
                           throws java.io.IOException
Transcode the metadata of package into the final manifest format, and archive (by an implementation specific method) the entire package contents into the destination file.

Parameters:
pkg -
destinationFile -
Throws:
java.io.IOException

getManifestName

java.lang.String getManifestName(DataPackage p)
Get the path of the manifest file inside the package.

Parameters:
p - the data package
Returns:

getFileAndType

FileAndType getFileAndType(java.lang.String packageId,
                           java.lang.String filename)
                           throws NotFoundException
Parameters:
packageId -
filename -
Returns:
Throws:
NotFoundException


Copyright © 2006-2007 The SPECTRa Project. All Rights Reserved.