Return-Path: Delivered-To: apmail-commons-dev-archive@www.apache.org Received: (qmail 30781 invoked from network); 14 Jul 2008 13:38:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jul 2008 13:38:06 -0000 Received: (qmail 55368 invoked by uid 500); 14 Jul 2008 13:38:04 -0000 Delivered-To: apmail-commons-dev-archive@commons.apache.org Received: (qmail 55286 invoked by uid 500); 14 Jul 2008 13:38:04 -0000 Mailing-List: contact dev-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Developers List" Delivered-To: mailing list dev@commons.apache.org Received: (qmail 55275 invoked by uid 99); 14 Jul 2008 13:38:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 06:38:04 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sebbaz@gmail.com designates 64.233.170.190 as permitted sender) Received: from [64.233.170.190] (HELO rn-out-0910.google.com) (64.233.170.190) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 13:37:12 +0000 Received: by rn-out-0910.google.com with SMTP id m69so1490534rnd.1 for ; Mon, 14 Jul 2008 06:37:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=r8vHznWh7Pkl585bm0LTwQjB1cP/fFsChhXKo/8lhR0=; b=m8hMmWET9DysmP4NRHNphnL9tqpUB+VHRsAQj8LPDzd6tioLPNWcOSFPd679rnspzf VEXh1NJchsRMNKseNi/cEBqGDO6JLY13Zm4+rhM9uu4G+gQTBeywLcjLJZRwnhafICwL BLnlldurNGTRz3yypjZC6hkxBoqxAPyZZfqV4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=jKDUJbQz+AUjpO9EynE50+VqLtfxmGdsksPjTWmQNfdaFYtY5DRZGehDjjUWVSV2wd sF8Ubi9X+3ofhfke+KfUVosoi6bhYCO2QQq/X1LyQZjvQjv+UVcW9CdlW/fLn/uZ9luz N19kAaCl3pCoFOStSTcZbn5aGvovdry67AQaI= Received: by 10.150.11.6 with SMTP id 6mr20349456ybk.9.1216042655718; Mon, 14 Jul 2008 06:37:35 -0700 (PDT) Received: by 10.150.220.4 with HTTP; Mon, 14 Jul 2008 06:37:34 -0700 (PDT) Message-ID: <25aac9fc0807140637ob066fffhb57d7e2ca5567bd1@mail.gmail.com> Date: Mon, 14 Jul 2008 14:37:34 +0100 From: sebb To: "Commons Developers List" Subject: Re: [CODEC] Base64 decode() handling of invalid encoded data In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <25aac9fc0806210519p21dbeefco3dd002d4d8d95bcb@mail.gmail.com> <598ad5b50806251202v73bd95efj44e0dec5997c6125@mail.gmail.com> <25aac9fc0807140524n7de7a58av2db1e6b92dc07a77@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On 14/07/2008, Jochen Wiedmann wrote: > On Mon, Jul 14, 2008 at 2:24 PM, sebb wrote: > > Just looked at this again. > > > > Using IOException causes problems, because the interface BinaryDecoder > > does not declare that as a possible exception. > > > > How about using DecoderException instead? > > > > Seems just as appropriate to me. > > > Fine with me. > Should have tried it before posting ... Both IOException and DecoderException are checked, and so this means that the method signature for public static byte[] decodeBase64() would need to change - or the method needs to convert the DecoderException to an unchecked error. Thoughts? > > Jochen > > -- > Look, that's why there's rules, understand? So that you think before > you break 'em. > > -- (Terry Pratchett, Thief of Time) > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org > For additional commands, e-mail: dev-help@commons.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org For additional commands, e-mail: dev-help@commons.apache.org