Class PMMLUtils


  • public class PMMLUtils
    extends Object
    Utility routines.
    Version:
    $Revision$
    Author:
    Mark Hall (mhall{[at]}pentaho{[dot]}com)
    • Constructor Detail

      • PMMLUtils

        public PMMLUtils()
    • Method Detail

      • pad

        public static String pad​(String source,
                                 String padChar,
                                 int length,
                                 boolean leftPad)
        Utility method to left or right pad strings with arbitrary characters.
        Parameters:
        source - the source string
        padChar - the character to pad with
        length - the length of the resulting string
        leftPad - pad to the left instead of the right
        Returns:
        a padded string