We have to copy the data into an intermediary app ByteBuffer first, then send it through the SSLEngine.
We return the number of bytes actually read out of the filechannel. However, the data may actually be stuck in the fileChannelBB or the outNetBB. The caller is responsible for making sure to call dataFlush() before shutting down. @param fc to transfer FileChannel @param pos start position @param len length @return written length @throws Throwable A runtime exception
|
|