Package edu.ucsb.nceas.metacat.download
Class PackageDownloaderV1
java.lang.Object
edu.ucsb.nceas.metacat.download.PackageDownloaderV1
-
Field Summary
Modifier and TypeFieldDescriptionList<org.dataone.service.types.v1.Identifier>
org.dataone.speedbagit.SpeedBagIt
-
Constructor Summary
ConstructorDescriptionPackageDownloaderV1
(org.dataone.service.types.v1.Identifier pid) Creates a PackageDownloaderV1 object. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSciPdf
(InputStream metadataStream, org.dataone.service.types.v2.SystemMetadata metadataSysMeta, org.dataone.service.types.v1.Identifier metadataID) Creates a pdf out of the science metadata and adds it to the bag.download()
-
Field Details
-
packagePids
-
speedBag
public org.dataone.speedbagit.SpeedBagIt speedBag -
pidMapping
-
fileNames
-
-
Constructor Details
-
PackageDownloaderV1
public PackageDownloaderV1(org.dataone.service.types.v1.Identifier pid) throws org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.InvalidRequest, IOException, org.dataone.service.exceptions.NotImplemented Creates a PackageDownloaderV1 object. This initializes the member variables and creates the bag filesystem structure.- Parameters:
pid
- : The PID of the resource map- Throws:
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.InvalidRequest
IOException
org.dataone.service.exceptions.NotImplemented
-
-
Method Details
-
download
public InputStream download() throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented- Throws:
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
-
addSciPdf
public void addSciPdf(InputStream metadataStream, org.dataone.service.types.v2.SystemMetadata metadataSysMeta, org.dataone.service.types.v1.Identifier metadataID) Creates a pdf out of the science metadata and adds it to the bag.
-