Package rma.util
Class DSSPathPartGenerator
java.lang.Object
rma.util.DSSPathPartGenerator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
generatePathnamePart
(List nameParts, String delimeter) Generates a new path name part based on a list of strings that make up the pathname part.static void
-
Field Details
-
MAX_DSS_PART_LENGTH
protected final int MAX_DSS_PART_LENGTH- See Also:
-
_pathPartsMap
-
-
Constructor Details
-
DSSPathPartGenerator
public DSSPathPartGenerator()
-
-
Method Details
-
clearPartsMap
public void clearPartsMap() -
generatePathnamePart
Generates a new path name part based on a list of strings that make up the pathname part. If the pathname part is greater than the 64 DSS imposed path part size limit, than some truncation will be done. The resultant string will be returned. The truncation algorithm is intelligent enough to not generate same truncated string value for two different strings. For example if the part size was 4 and the strings "123456" and "123457" were passed in, the truncated string for the first string would be "12~1" and the second will be "12~2".- Parameters:
nameParts
- Listdelimeter
- String- Returns:
- String
-
main
-