Class MZTabStringUtils


  • public final class MZTabStringUtils
    extends Object
    Provide a couple of functions for translate, parse and print formatted string defined in the mzTab specification.
    Since:
    30/01/13
    Author:
    qingwei
    • Method Detail

      • isEmpty

        public static boolean isEmpty​(String s)
        Check the string is null or blank.
        Parameters:
        s - a String object.
        Returns:
        a boolean.
      • toCapital

        public static String toCapital​(String s)
        Translate the string to the first char is upper case, others are lower case.
        Parameters:
        s - a String object.
        Returns:
        a String object.
      • parseString

        public static String parseString​(String target)
        Pre-process the String object. If object is null, return null; otherwise remove heading and tailing white space.
        Parameters:
        target - a String object.
        Returns:
        a String object.