Package rma.util

Class DSSPathPartGenerator

java.lang.Object
rma.util.DSSPathPartGenerator

public class DSSPathPartGenerator extends Object
  • Field Details

    • MAX_DSS_PART_LENGTH

      protected final int MAX_DSS_PART_LENGTH
      See Also:
    • _pathPartsMap

      protected Map _pathPartsMap
  • Constructor Details

    • DSSPathPartGenerator

      public DSSPathPartGenerator()
  • Method Details

    • clearPartsMap

      public void clearPartsMap()
    • generatePathnamePart

      public String generatePathnamePart(List nameParts, String delimeter)
      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 - List
      delimeter - String
      Returns:
      String
    • main

      public static void main(String[] args)