private static void pageFriendlyTransfer(NativeIO nativeIO, OutputStream out, FileDescriptor outDescriptor, FileInputStream in, int bufferSize) throws IOException {
        int read;
        long totalBytesRead = 0;
        byte[] buffer = new byte[bufferSize];
        while ((read = in.read(buffer)) >= 0) {
            out.write(buffer, 0, read);
            if (read > 0) {
                nativeIO.dropPartialFileFromCache(in.getFD(), totalBytesRead, read, false);
                nativeIO.dropPartialFileFromCache(outDescriptor, totalBytesRead, read, false);
            }
            totalBytesRead += read;
        }
    }
Creates an instance of FilesArchive managing the given directory
logserver/src/main/java/com/yahoo/logserver/handlers/archive/FilesArchived.java