reactor-netty-core/src/main/java/reactor/netty/NettyOutbound.java
/**
	 * Sends content from given {@link Path} using chunked read/write. <p>It will listen
	 * for any error on write and close on terminal signal (complete|error). If more than
	 * one publisher is attached (multiple calls to send()) completion occurs after all
	 * publishers complete.</p>
	 * <p>Note: Nesting any send* method is not supported.</p>
	 *
	 * @param file the file Path
	 * @param position where to start
	 * @param count how much to transfer
	 *
	 * @return A Publisher to signal successful sequence write (e.g. after "flush") or any
	 * error during write
	 */
Sends content from given  Path using chunked read/write. It will listen
for any error on write and close on terminal signal (complete|error). If more than
one publisher is attached (multiple calls to send()) completion occurs after all
publishers complete.
Note: Nesting any send* method is not supported.

@param file the file Path
@param position where to start
@param count how much to transfer

@return A Publisher to signal successful sequence write  or any
error during write
Sends content from given Path using chunked read / write . It will listen for any error on write and close on terminal signal ( complete|error ) . If more than one publisher is attached ( multiple calls to send () ) completion occurs after all publishers complete . Note : Nesting any send * method is not supported . @param file the file Path @param position where to start @param count how much to transfer @return A Publisher to signal successful sequence write or any error during write
default NettyOutbound sendFileChunked(Path file, long position, long count) {
		Objects.requireNonNull(file, "filepath");
		return sendUsing(() -> FileChannel.open(file, StandardOpenOption.READ),
				(c, fc) -> {
					ReactorNetty.addChunkedWriter(c);
					try {
						return new ChunkedNioFile(fc, position, count, 1024);
					}
					catch (Exception e) {
						throw Exceptions.propagate(e);
					}
				},
				ReactorNetty.fileCloser);
	}
default NettyOutbound sendFileChunked ( Path file , long position , long count ) { Objects . requireNonNull ( file , "filepath" ) ; return sendUsing ( ( ) -> FileChannel . open ( file , StandardOpenOption . READ ) , ( c , fc ) -> { ReactorNetty . addChunkedWriter ( c ) ; try { return new ChunkedNioFile ( fc , position , count , 1024 ) ; } catch ( Exception e ) { throw Exceptions . propagate ( e ) ; } } , ReactorNetty . fileCloser ) ; }
Sends content from given {@link Path} using chunked read/write.
Sends content from given { @link Path } using chunked read / write .