public static void main(String[] args) throws IOException {
        if(args == null || args.length < 2) return ;

        args = new String[2];
        FileInputStream fileInputStream = new FileInputStream(args[0]);
        FileOutputStream fileOutputStream = new FileOutputStream(args[1]);
        FileChannel fileInputStreamChannel = fileInputStream.getChannel();
        FileChannel fileOutputStreamChannel = fileOutputStream.getChannel();
        ByteBuffer fileBuffer = ByteBuffer.allocate(1024);

        while (true){
            fileBuffer.clear();

            int read = fileInputStreamChannel.read(fileBuffer);
            if(read == -1){
                break;
            }
            fileBuffer.flip();
            fileOutputStreamChannel.write(fileBuffer);

        }
        fileInputStream.close();
        fileOutputStream.close();
    }