Fastest data/file transfer over LAN

Hi...Can you please tell me, for fastest data/file transfer over LAN which class can be used? Is the SocketChannel best for it or anything else?Thanks...
[181 byte] By [Ritesh.Zealota] at [2007-11-26 18:04:26]
# 1
FTP... coz, it uses nice biiiiiiiiiggggg packet sizes, so the network boys HATE it!
corlettka at 2007-7-9 5:34:49 > top of Java-index,Java Essentials,Java Programming...
# 2
Thanks for the response.But, I mean for which java class can be used for the same?
Ritesh.Zealota at 2007-7-9 5:34:49 > top of Java-index,Java Essentials,Java Programming...
# 3
Use a direct socket connection with DataInput/OutputStream and RandomAccessFile and a suitably sized buffer. *edit* Don't know if this is the fastest way, but it does perform pretty darned fast for me.
duckbilla at 2007-7-9 5:34:49 > top of Java-index,Java Essentials,Java Programming...
# 4

> Thanks for the response.

>

> But, I mean for which java class can be used for the

> same?

Use a plain socket if you don't plan to create a scalable server. Take a look at the NIO library called MINA fron Apache if you want to use NIO, but dont' want to implement everything from scratch.

Kaj

kajbja at 2007-7-9 5:34:49 > top of Java-index,Java Essentials,Java Programming...
# 5
google "java FTP" ... read this old post http://forum.java.sun.com/thread.jspa?threadID=632973&messageID=3664610
corlettka at 2007-7-9 5:34:49 > top of Java-index,Java Essentials,Java Programming...