Package org.duracloud.stitch
Interface FileStitcher
-
- All Known Implementing Classes:
FileStitcherImpl
public interface FileStitcherThis interface defines the contract of a FileStitcher.- Author:
- Andrew Woods Date: 9/3/11
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default 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.ContentgetContentFromManifest(String spaceId, String contentId, FileStitcherListener listener)ChunksManifestgetManifest(String spaceId, String manifestId)This method returns the deserialized ChunksManifest object found in the arg spaceId with the arg manifestId.
-
-
-
Method Detail
-
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
ChunksManifest getManifest(String spaceId, String manifestId) throws InvalidManifestException
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
-
-