Class ScannerUtils


  • public class ScannerUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String cleanKeyForFilename​(java.lang.String projectKey)
      Clean provided string to remove chars that are not valid as file name.
      static java.lang.String describe​(java.lang.Object o)  
      static java.lang.String encodeForUrl​(java.lang.String url)  
      static java.lang.String pluralize​(java.lang.String str, int i)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • cleanKeyForFilename

        public static java.lang.String cleanKeyForFilename​(java.lang.String projectKey)
        Clean provided string to remove chars that are not valid as file name.
        Parameters:
        projectKey - e.g. my:file
      • encodeForUrl

        public static java.lang.String encodeForUrl​(@Nullable
                                                    java.lang.String url)
      • describe

        public static java.lang.String describe​(java.lang.Object o)
      • pluralize

        public static java.lang.String pluralize​(java.lang.String str,
                                                 int i)