I have develop a StringKit class which has a rightPad method that
handles truncation as well. I can send it to you (it's LGPL).

Regards,
Elifarley

On 11/18/05, Mark Lybarger <[EMAIL PROTECTED]> wrote:
> 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.
>
> thanks!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to