java - Method for copying bytes from Channels to Paths and vice versa? -
i found there 2 methods copying bytes between path
s , input/outputstream
s
files#copy(inputstream in, path target, copyoption... options) files#copy(path source, outputstream out)
are there methods using readable/writablebytechannel
s?
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
Post a Comment