@Immutable public final class ChannelHelper extends Object
Modifier and Type | Method and Description |
---|---|
static long |
channelCopy(ReadableByteChannel aSrc,
WritableByteChannel aDest)
Copy all content from the source channel to the destination channel.
|
static ESuccess |
close(Channel aChannel) |
static ESuccess |
release(FileLock aFileLock) |
@Nonnegative public static long channelCopy(@Nonnull @WillNotClose ReadableByteChannel aSrc, @Nonnull @WillNotClose WritableByteChannel aDest) throws IOException
aSrc
- Source channel. May not be null
. Is not closed after
the operation.aDest
- Destination channel. May not be null
. Is not closed
after the operation.IOException
- In case of IO errorCopyright © 2014–2019 Philip Helger. All rights reserved.