Package weka.core.pmml
Class PMMLUtils
- java.lang.Object
-
- weka.core.pmml.PMMLUtils
-
public class PMMLUtils extends Object
Utility routines.- Version:
- $Revision$
- Author:
- Mark Hall (mhall{[at]}pentaho{[dot]}com)
-
-
Constructor Summary
Constructors Constructor Description PMMLUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringpad(String source, String padChar, int length, boolean leftPad)Utility method to left or right pad strings with arbitrary characters.
-
-
-
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 stringpadChar- the character to pad withlength- the length of the resulting stringleftPad- pad to the left instead of the right- Returns:
- a padded string
-
-