Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,all.Could anybody give me a detail describtion of the channel?(that is,something likes file channel,socket channel,etc.) or give me the relative link about it.Also,I want to know:
1.How the os implements the channel,does it need any hardwares to support?
2.What does it differ from the stream,in what situation,I should use it rather then the stream? What's its advantage?
Thanks to all.
Posted

1 solution

You might want to read here:

http://docs.oracle.com/javase/tutorial/essential/io/index.html[^]

Or explain further more what kind of "channel" you are talking about. There are to much things named "channel" to be sure what you're about.
 
Share this answer
 
Comments
zcldzh 2-Aug-14 10:27am    
Please take file channel as an example to explain it,mainly focusing on thease questions:
1.How the os implements the file channel,does it need any hardwares to support? or it just a virtual concept?
2.Why I should use it instead of the file stream?
Thanks!
TorstenH. 4-Aug-14 5:40am    
check this:

http://docs.oracle.com/javase/7/docs/api/java/nio/channels/FileChannel.html

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900