Class MZTabStringUtils


  • public final class MZTabStringUtils
    extends java.lang.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 Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isEmpty​(java.lang.String s)
      Check the string is null or blank.
      static java.lang.String parseString​(java.lang.String target)
      Pre-process the String object.
      static java.lang.String toCapital​(java.lang.String s)
      Translate the string to the first char is upper case, others are lower case.
      • Methods inherited from class java.lang.Object

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

      • isEmpty

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

        public static java.lang.String toCapital​(java.lang.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 java.lang.String parseString​(java.lang.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.