/** * <p> * Calls <code>write(file, 0, file.length())</code>. * </p> * * @param file the {@link File} to transfer. * @param handler {@link CompletionHandler} that will be notified * of the transfer progress/completion or failure. * * @throws IllegalArgumentException if <code>file</code> is null * * @see #sendfile(java.io.File, long, long, org.glassfish.grizzly.CompletionHandler) * * @since 2.2 */ public void sendfile(final File file, final CompletionHandler<WriteResult> handler) { if (file == null) { throw new IllegalArgumentException("Argument 'file' cannot be null"); } sendfile(file, 0, file.length(), handler); }
/** * <p> * Calls <code>write(file, 0, file.length())</code>. * </p> * * @param file the {@link File} to transfer. * @param handler {@link CompletionHandler} that will be notified * of the transfer progress/completion or failure. * * @throws IllegalArgumentException if <code>file</code> is null * * @see #sendfile(java.io.File, long, long, org.glassfish.grizzly.CompletionHandler) * * @since 2.2 */ public void sendfile(final File file, final CompletionHandler<WriteResult> handler) { if (file == null) { throw new IllegalArgumentException("Argument 'file' cannot be null"); } sendfile(file, 0, file.length(), handler); }
/** * <p> * Calls <code>write(file, 0, file.length())</code>. * </p> * * @param file the {@link File} to transfer. * @param handler {@link CompletionHandler} that will be notified * of the transfer progress/completion or failure. * * @throws IllegalArgumentException if <code>file</code> is null * * @see #sendfile(java.io.File, long, long, org.glassfish.grizzly.CompletionHandler) * * @since 2.2 */ public void sendfile(final File file, final CompletionHandler<WriteResult> handler) { if (file == null) { throw new IllegalArgumentException("Argument 'file' cannot be null"); } sendfile(file, 0, file.length(), handler); }
/** * <p> * Calls <code>write(file, 0, file.length())</code>. * </p> * * @param file the {@link File} to transfer. * @param handler {@link CompletionHandler} that will be notified * of the transfer progress/completion or failure. * * @throws IllegalArgumentException if <code>file</code> is null * * @see #sendfile(java.io.File, long, long, org.glassfish.grizzly.CompletionHandler) * * @since 2.2 */ public void sendfile(final File file, final CompletionHandler<WriteResult> handler) { if (file == null) { throw new IllegalArgumentException("Argument 'file' cannot be null"); } sendfile(file, 0, file.length(), handler); }
/** * <p> * Calls <code>write(file, 0, file.length())</code>. * </p> * * @param file the {@link File} to transfer. * @param handler {@link CompletionHandler} that will be notified * of the transfer progress/completion or failure. * * @throws IllegalArgumentException if <code>file</code> is null * * @see #sendfile(java.io.File, long, long, org.glassfish.grizzly.CompletionHandler) * * @since 2.2 */ public void sendfile(final File file, final CompletionHandler<WriteResult> handler) { if (file == null) { throw new IllegalArgumentException("Argument 'file' cannot be null"); } sendfile(file, 0, file.length(), handler); }
/** * <p> * Calls <code>write(file, 0, file.length())</code>. * </p> * * @param file the {@link File} to transfer. * @param handler {@link CompletionHandler} that will be notified * of the transfer progress/completion or failure. * * @throws IllegalArgumentException if <code>file</code> is null * * @see #sendfile(java.io.File, long, long, org.glassfish.grizzly.CompletionHandler) * * @since 2.2 */ public void sendfile(final File file, final CompletionHandler<WriteResult> handler) { if (file == null) { throw new IllegalArgumentException("Argument 'file' cannot be null"); } sendfile(file, 0, file.length(), handler); }
/** * <p> * Calls <code>write(file, 0, file.length())</code>. * </p> * * @param file the {@link File} to transfer. * @param handler {@link CompletionHandler} that will be notified * of the transfer progress/completion or failure. * * @throws IllegalArgumentException if <code>file</code> is null * * @see #sendfile(java.io.File, long, long, org.glassfish.grizzly.CompletionHandler) * * @since 2.2 */ public void sendfile(final File file, final CompletionHandler<WriteResult> handler) { if (file == null) { throw new IllegalArgumentException("Argument 'file' cannot be null"); } sendfile(file, 0, file.length(), handler); }
/** * <p> * Calls <code>write(file, 0, file.length())</code>. * </p> * * @param file the {@link File} to transfer. * @param handler {@link CompletionHandler} that will be notified * of the transfer progress/completion or failure. * * @throws IllegalArgumentException if <code>file</code> is null * * @see #sendfile(java.io.File, long, long, org.glassfish.grizzly.CompletionHandler) * * @since 2.2 */ public void sendfile(final File file, final CompletionHandler<WriteResult> handler) { if (file == null) { throw new IllegalArgumentException("Argument 'file' cannot be null"); } sendfile(file, 0, file.length(), handler); }
/** * <p> * Calls <code>write(file, 0, file.length())</code>. * </p> * * @param file the {@link File} to transfer. * @param handler {@link CompletionHandler} that will be notified * of the transfer progress/completion or failure. * * @throws IllegalArgumentException if <code>file</code> is null * * @see #sendfile(java.io.File, long, long, org.glassfish.grizzly.CompletionHandler) * * @since 2.2 */ public void sendfile(final File file, final CompletionHandler<WriteResult> handler) { if (file == null) { throw new IllegalArgumentException("Argument 'file' cannot be null"); } sendfile(file, 0, file.length(), handler); }
private static void sendZeroCopy(final Response response, final File file) throws IOException { final OutputBuffer outputBuffer = response.getOutputBuffer(); outputBuffer.sendfile(file, null); }
private static void sendZeroCopy(final Response response, final File file) throws IOException { final OutputBuffer outputBuffer = response.getOutputBuffer(); outputBuffer.sendfile(file, null); }
private static void sendZeroCopy(final Response response, final File file) throws IOException { final OutputBuffer outputBuffer = response.getOutputBuffer(); outputBuffer.sendfile(file, null); }
private static void sendZeroCopy(final Response response, final File file) throws IOException { final OutputBuffer outputBuffer = response.getOutputBuffer(); outputBuffer.sendfile(file, null); }
private static void sendZeroCopy(final Response response, final File file) throws IOException { final OutputBuffer outputBuffer = response.getOutputBuffer(); outputBuffer.sendfile(file, null); }
private static void sendZeroCopy(final Response response, final File file) throws IOException { final OutputBuffer outputBuffer = response.getOutputBuffer(); outputBuffer.sendfile(file, null); }
private static void sendZeroCopy(final Response response, final File file) throws IOException { final OutputBuffer outputBuffer = response.getOutputBuffer(); outputBuffer.sendfile(file, null); }
private static void sendZeroCopy(final Response response, final File file) throws IOException { final OutputBuffer outputBuffer = response.getOutputBuffer(); outputBuffer.sendfile(file, null); }
private static void sendZeroCopy(final Response response, final File file) throws IOException { final OutputBuffer outputBuffer = response.getOutputBuffer(); outputBuffer.sendfile(file, null); }
private static void sendZeroCopy(final Response response, final File file) throws IOException { final OutputBuffer outputBuffer = response.getOutputBuffer(); outputBuffer.sendfile(file, null); }
private static void sendZeroCopy(final Response response, final File file) throws IOException { final OutputBuffer outputBuffer = response.getOutputBuffer(); outputBuffer.sendfile(file, null); }