零拷貝

Java nio中提供的FileChannel和SocketChannel實現零拷貝傳輸數據: public long copy(String srcFilename,String destFilename) throws Exception{ File srcFile = new File(srcFilename); long size = srcFile.length(); FileChan
相關文章
相關標籤/搜索