FileChannel#transferTo(long, long, java.nio.channels.WritableByteChannel) for
use with Grizzly 2.0 org.glassfish.grizzly.asyncqueue.AsyncQueueWriter .
| Modifier and Type | Field and Description |
|---|---|
| private FileChannel | |
| private long | |
| private long |
| Access | Constructor and Description |
|---|---|
| public | FileTransfer(final File
the f)File to transfer.Constructs a new |
| public | FileTransfer(final File
the f, final long File to transfer.the offset within the File to start the transfer. pos, final long the total number of bytes to transfer. len)Constructs a new |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | hasRemaining()
Implements org. Return |
| public boolean | isExternal()
Implements org. Returns true if the message represents an external resource (for example
|
| public boolean | release()
Implements org. Perform message specific actions to release resources held by the entity backing this |
| public int | remaining()
Implements org. Return the number of bytes remaining to be written. |
| public long | Returns: the number of bytes that have been transferredImplements org. Transfers the File backing this |
| fileChannel | back to summary |
|---|---|
| private FileChannel fileChannel | |
| len | back to summary |
|---|---|
| private long len | |
| pos | back to summary |
|---|---|
| private long pos | |
| FileTransfer | back to summary |
|---|---|
| public FileTransfer(final File f) Constructs a new
| |
| FileTransfer | back to summary |
|---|---|
| public FileTransfer(final File f, final long pos, final long len) Constructs a new
| |
| hasRemaining | back to summary |
|---|---|
| public boolean hasRemaining() Implements org. Doc from org. Return
| |
| isExternal | back to summary |
|---|---|
| public boolean isExternal() Implements org. Doc from org. Returns true if the message represents an external resource (for example
| |
| release | back to summary |
|---|---|
| public boolean release() Implements org. Doc from org. Perform message specific actions to release resources held by the entity backing this
| |
| remaining | back to summary |
|---|---|
| public int remaining() Implements org. Doc from org. Return the number of bytes remaining to be written.
| |
| writeTo | back to summary |
|---|---|
| public long writeTo(final WritableByteChannel c) throws IOException Implements org. Transfers the File backing this
| |