commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Reeder" <tree...@gmail.com>
Subject Re: [Commons IO] File splitting and joining
Date Thu, 13 Sep 2007 17:58:11 GMT
Henri,

The copy() method sounds good.

For split, maybe something like: split(File and/or InputStream, long
bytesPerChunk, NamingScheme);

Where NamingScheme is an interface that would define how the chunks should
be named, for example, an IncrementingNamingScheme would append a number to
a name for each chunk.  Same naming scheme class would be used for the
reverse process too.

Travis


On 9/13/07, Henri Yandell <flamefew@gmail.com> wrote:
>
> Or maybe for the join it's a IOUtils.copy(InputStream[], OutputStream)
> and Reader[] overload.
>
> How would split look? Split on byte number for splitter and on line
> number for Reader?
>
> On 9/10/07, Travis Reeder <treeder@gmail.com> wrote:
> > I am looking for a file splitter and joiner and naturally looked at
> > commons-io to see if it had it, but it doesn't look like it does. Would
> it
> > make sense to add it to FileUtils or something?  Should be somewhat
> simple
> > to implement.
> >
> > Travis
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
> For additional commands, e-mail: user-help@commons.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message