@Immutable public final class ChannelUtils 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.IOExceptionCopyright © 2006–2014 phloc systems. All rights reserved.