Package org.duracloud.stitch
Interface FileStitcher
- All Known Implementing Classes:
FileStitcherImpl
public interface FileStitcher
This interface defines the contract of a FileStitcher.
- Author:
- Andrew Woods Date: 9/3/11
-
Method Summary
Modifier and TypeMethodDescriptiondefault ContentgetContentFromManifest(String spaceId, String contentId) This method retrieves the original content item as defined by the chunks manifest object found in the arg space-id and content-id.getContentFromManifest(String spaceId, String contentId, FileStitcherListener listener) getManifest(String spaceId, String manifestId) This method returns the deserialized ChunksManifest object found in the arg spaceId with the arg manifestId.
-
Method Details
-
getContentFromManifest
default Content getContentFromManifest(String spaceId, String contentId) throws InvalidManifestException This method retrieves the original content item as defined by the chunks manifest object found in the arg space-id and content-id.- Parameters:
spaceId- of chunks manifestcontentId- of chunks manifest- Returns:
- reconstituted content item defined in manifest
- Throws:
InvalidManifestException- if manifest file is named with improper naming convention, or there is an error retrieving the manifest.
-
getContentFromManifest
Content getContentFromManifest(String spaceId, String contentId, FileStitcherListener listener) throws InvalidManifestException - Throws:
InvalidManifestException
-
getManifest
This method returns the deserialized ChunksManifest object found in the arg spaceId with the arg manifestId.- Parameters:
spaceId- of manifest content itemmanifestId- of manifest content item- Returns:
- deserialized ChunksManifest
- Throws:
InvalidManifestException- on error
-