commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lybarger <>
Subject commons-lang StringUtils.rightPad - truncate
Date Fri, 18 Nov 2005 15:21:28 GMT
docs for StringUtils.rightPad("FOO",1) shows that it returns "FOO". 
Is there a method to get the rightPadding to also handle truncation? 
I'm looking to format fixed length fields where the output has to be X
and only X characters.  thus i have to truncate anythe  extra stuff
that might be there.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message