Top Methods
org.glassfish.grizzly

public Interface FileChunk

extends WritableMessage
Known Direct Implementers
org.glassfish.grizzly.FileTransfer
Imports
java.io.IOException, java.nio.channels.WritableByteChannel, org.glassfish.grizzly.asyncqueue.WritableMessage

Method Summary

Modifier and TypeMethod and Description
public long

Returns:

the number of bytes that have been transferred
writeTo
(final WritableByteChannel c)

Transfers the File region backing this FileRegion to the specified WritableByteChannel.

Inherited from org.glassfish.grizzly.asyncqueue.WritableMessage:
hasRemainingisExternalreleaseremaining

Method Detail

writeToback to summary
public long writeTo(final WritableByteChannel c) throws IOException

Transfers the File region backing this FileRegion to the specified WritableByteChannel.

Parameters
c:WritableByteChannel

the WritableByteChannel

Returns:long

the number of bytes that have been transferred

Exceptions
IOException:
if an error occurs while processing
See Also
java.nio.channels.FileChannel#transferTo(long, long, java.nio.channels.WritableByteChannel)