tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid...@pidster.com>
Subject Re: Copying large files around
Date Sat, 13 Oct 2007 13:55:25 GMT
David Kerber wrote:
> What is the most efficient (=fastest) way of copying large (> 1GB [yes,
> that's a Giga]) files around the network in java when running under
> tomcat 5.5.x?  Do I use a FileInputStream and FileOutputStream with a
> large byte[] array?  Or what?

I think that the NIO apis were intended to handle speedier transfers of
data across network connections.

It depends how you wish to move the data.  Google provided a wealth of
results of mixed tutorials and API explanations for "java nio".

p



> D
> 
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message