Class PublishUtils


  • public class PublishUtils
    extends Object
    Contains utility methods for publication purposes.
    Restriction:
    This class is not intended to be sub-classed by clients.
    Restriction:
    This class is not intended to be instantiated by clients.
    • Constructor Detail

      • PublishUtils

        public PublishUtils()
    • Method Detail

      • correctPathAsString

        public static String correctPathAsString​(String path)
        Performs minor syntactic cleanup of path, it will correct the input string for OS.
        Parameters:
        path - for correcting, can be null, then null will be returned
        Returns:
        correct path for OS or null
      • correctPath

        public static Path correctPath​(String path)
        Performs minor syntactic cleanup of path, it will correct the input string for OS.
        Parameters:
        path - for correcting, can be null, then null will be returned
        Returns:
        correct path for OS or null
      • removeQuotes

        public static String removeQuotes​(String line)
        Removes quotes from line.
        Parameters:
        line - for removing quotes
        Returns:
        line without quotes or null
      • normalizeSeparators

        public static String normalizeSeparators​(String path)
        Replaces Windows file separators to Unix file separators.
        Parameters:
        path - for replacing separators
        Returns:
        line with Unix separators or null