Here you can find the source of addLeadingZeros(String str)
private static String addLeadingZeros(String str)
//package com.java2s; //License from project: Apache License public class Main { private static String addLeadingZeros(String str) { String nStr = str;// ww w . j ava 2s. c o m while (nStr.length() < 15) { nStr = "0" + nStr; } //Logger.debug("logTime is " + str + " => " + nStr + " length " + str.length()); return nStr; } }