java - Method for copying bytes from Channels to Paths and vice versa? -


i found there 2 methods copying bytes between paths , input/outputstreams

files#copy(inputstream in, path target, copyoption... options) files#copy(path source, outputstream out) 

are there methods using readable/writablebytechannels?

say,

copy(readablebytechannel in, path target, copyoption... options) copy(path source, writablebytechannel out) 

?

i know there handy methods changing streams , channels.

channels#newchannel(inputstream) channels#newchannel(outputstream) 

thanks.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -