Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 46748 invoked from network); 18 Nov 2005 15:21:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Nov 2005 15:21:57 -0000 Received: (qmail 76049 invoked by uid 500); 18 Nov 2005 15:21:50 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 76000 invoked by uid 500); 18 Nov 2005 15:21:50 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 75974 invoked by uid 99); 18 Nov 2005 15:21:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2005 07:21:50 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of mlybarger@gmail.com designates 66.249.82.201 as permitted sender) Received: from [66.249.82.201] (HELO xproxy.gmail.com) (66.249.82.201) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Nov 2005 07:23:23 -0800 Received: by xproxy.gmail.com with SMTP id i31so171483wxd for ; Fri, 18 Nov 2005 07:21:28 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=gBvKHtbf0RVvzgOqbQCq2dUKB/cvze4YnZ/uThoJjJ0xLBSVtdExZz1YED+yR7tI7oaTiAUqLqBUwv1gGl77C0bWrMoqEJe6Onvm02DKZPGcotlJwv18+iWwSERuSySXbM3WhHcybeTGEHqjWmFCdvS3aSYc3KyQr1Tx3PZ/UWs= Received: by 10.65.22.17 with SMTP id z17mr3636518qbi; Fri, 18 Nov 2005 07:21:28 -0800 (PST) Received: by 10.64.241.17 with HTTP; Fri, 18 Nov 2005 07:21:27 -0800 (PST) Message-ID: Date: Fri, 18 Nov 2005 10:21:28 -0500 From: Mark Lybarger To: commons-user@jakarta.apache.org Subject: commons-lang StringUtils.rightPad - truncate MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N docs for StringUtils.rightPad("FOO",1) shows that it returns "FOO".=20 Is there a method to get the rightPadding to also handle truncation?=20 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: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org