Calls write(file, 0, file.length())
.
@param file the {@link File} to transfer.
@param handler {@link CompletionHandler} that will be notifiedof the transfer progress/completion or failure.
@throws IllegalArgumentException if
file
is null
@see #sendfile(java.io.File,long,long,org.glassfish.grizzly.CompletionHandler)
@since 2.2