Package org.glassfish.grizzly
Interface FileChunk
- All Superinterfaces:
WritableMessage
- All Known Implementing Classes:
FileTransfer
-
Method Summary
Modifier and TypeMethodDescriptionlong
Transfers the File region backing thisFileRegion
to the specifiedWritableByteChannel
.Methods inherited from interface org.glassfish.grizzly.asyncqueue.WritableMessage
hasRemaining, isExternal, release, remaining
-
Method Details
-
writeTo
Transfers the File region backing thisFileRegion
to the specifiedWritableByteChannel
.- Parameters:
c
- theWritableByteChannel
- Returns:
- the number of bytes that have been transferred
- Throws:
IOException
- if an error occurs while processing- See Also:
-