Package org.duracloud.common.util
Class ContentIdUtil
- java.lang.Object
-
- org.duracloud.common.util.ContentIdUtil
-
public class ContentIdUtil extends Object
- Author:
- Daniel Bernstein
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetContentId(File file, File watchDir, String contentIdPrefix)Determines the content ID of a file: the path of the file relative to the watched directory.
-
-
-
Method Detail
-
getContentId
public static String getContentId(File file, File watchDir, String contentIdPrefix)
Determines the content ID of a file: the path of the file relative to the watched directory. If the watched directory is null, the content ID is simply the name of the file. If a prefix is being used, the prefix is added as the initial characters in the contentId.- Parameters:
file-watchDir-contentIdPrefix-- Returns:
-
-