avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Donald <dona...@apache.org>
Subject Re: [PATCH] IOUtil.java byte[] methods
Date Fri, 27 Jul 2001 14:37:54 GMT
On Fri, 27 Jul 2001 23:14, Jeff Turner wrote:
> Hi,
>
> The attached patch adds copy methods for byte arrays. 

You shoul have CVS access now, yes? So you could apply patches? ;)

BTW your editor seems to be playing funny buggers with indentation. It is 
transforming

void foo( int var1,
          int var2,
          int var3 )
{
}

into 

void foo( int var1,
      int var2,
      int var3 )
    {
    }

Something odd with tabbing?

> This was quite an
> obvious omission, given that Strings (char arrays) are already
> supported. I needed it to do stuff like:
>
> URL url = new URL("http://jakarta.apache.org");
> InputStream in = url.openStream();
> byte[] bArr = IOUtil.toByteArray( in );
> in.close();

yay - I wa sgonna have to cod ethat up in a week or so ;)

> Copy methods now exist from (InputStream|Reader|String|byte[]) to
> (OutputStream|Writer|String|byte[]).
>
> IOUtilsTestlet.java is also updated to test the new methods, *however*,
> it will fail if run with "ant test"; that is the subject of the second
> patch, which fixes build.xml to exclude
> ../jakarta-avalon/tools/lib/avalon-excalibur.jar.

Should be fixed a few hours ago, try updating from CVS again.

Cheers,

Pete

*-----------------------------------------------------*
| "Faced with the choice between changing one's mind, |
| and proving that there is no need to do so - almost |
| everyone gets busy on the proof."                   |
|              - John Kenneth Galbraith               |
*-----------------------------------------------------*

---------------------------------------------------------------------
To unsubscribe, e-mail: avalon-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: avalon-dev-help@jakarta.apache.org


Mime
View raw message