/** * {@inheritDoc} */ public long sendFile(FileChannel fileChannel, long position, long length) throws IOException { return ((FileOutputBuffer)response.getOutputBuffer()).sendFile(fileChannel, position, length); }
nWrite += ((FileOutputBuffer) outputBuffer).sendFile(fis.getChannel(), nWrite, length - nWrite);
while (nWrite < length) { nWrite += ((FileOutputBuffer) outputBuffer). sendFile(fis.getChannel(), nWrite, length - nWrite);