Transfer.ByteBufferTransfer, Transfer.FileChannelTransfer| Modifier and Type | Field and Description |
|---|---|
private java.nio.channels.FileChannel |
channel |
private long |
count |
private Transfer |
parent |
private long |
position |
private int |
remaining |
| Constructor and Description |
|---|
FileChannelTransfer(java.nio.ByteBuffer buf,
java.nio.channels.FileChannel channel,
long position,
long count) |
| Modifier and Type | Method and Description |
|---|---|
int |
remaining() |
int |
transferTo(java.nio.channels.WritableByteChannel s) |
private Transfer parent
private java.nio.channels.FileChannel channel
private long position
private long count
private int remaining
public FileChannelTransfer(java.nio.ByteBuffer buf,
java.nio.channels.FileChannel channel,
long position,
long count)
public final int transferTo(java.nio.channels.WritableByteChannel s)
throws java.io.IOException
transferTo in interface Transferjava.io.IOException