public final class ChannelsSubstitution extends Object
| Constructor and Description |
|---|
ChannelsSubstitution() |
| Modifier and Type | Method and Description |
|---|---|
static long |
drain(FileChannel channel,
long position,
long count)
Attempt to drain the given number of bytes from the file channel.
|
static long |
drain(ReadableByteChannel channel,
long count)
Attempt to drain the given number of bytes from the readable byte channel.
|
static long |
drain(org.xnio.channels.StreamSourceChannel channel,
long count)
Attempt to drain the given number of bytes from the stream source channel.
|
public static long drain(org.xnio.channels.StreamSourceChannel channel,
long count)
throws IOException
channel - the channel to draincount - the number of bytesIOException - if an error occurspublic static long drain(ReadableByteChannel channel, long count) throws IOException
channel - the channel to draincount - the number of bytesIOException - if an error occurspublic static long drain(FileChannel channel, long position, long count) throws IOException
channel - the channel to drainposition - the position to drain fromcount - the number of bytesIOException - if an error occursCopyright © 2019 JBoss by Red Hat. All rights reserved.