/**
 * Project RSA Algorithm.
 * Copyright Michał Szczygieł.
 * Created at Feb 25, 2014.
 */

/**
 * 
 * This class is responsible for safe operations on files. This class contatin
 * the basic input/output operations.
 * 
 * @author Michał Szczygieł <michal.szczygiel@wp.pl>
 * 
 */
public class IOOperations {

}

@@ -1,12 +1,222 @@
+import java.io.File;%0Aimport java.io.FileInputStream;%0Aimport java.io.FileNotFoundException;%0Aimport java.io.FileOutputStream;%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0Aimport java.io.OutputStream;%0A%0A
 /**%0A * Proje
@@ -380,17 +380,16 @@
 ss conta
-t
 in%0A * th
@@ -486,16 +486,16 @@
  * %0A */%0A
-
 public c
@@ -515,10 +515,1575 @@
 ions %7B%0A%0A
+    /**%0A     * Object to keep instance of RSA.%0A     */%0A    private RSA rsa;%0A%0A    /**%0A     * %0A     * @param rsa%0A     */%0A    public IOOperations(RSA rsa) %7B%0A        this.setRsa(rsa);%0A    %7D%0A%0A    /**%0A     * This method gets RSA instance.%0A     * %0A     * @return the RSA instance.%0A     */%0A    public RSA getRsa() %7B%0A        return rsa;%0A    %7D%0A%0A    /**%0A     * This method reads file from given directory.%0A     * %0A     * @param filePath%0A     *            The directory for file.%0A     * @return The %7B@link InputStream%7D for read file.%0A     * @throws IOException%0A     */%0A    public InputStream readFile(String filePath) throws IOException %7B%0A        InputStream InputStream = null;%0A        File file = new File(filePath);%0A%0A        if (file.exists()) %7B%0A            InputStream = new FileInputStream(file);%0A        %7D%0A%0A        return InputStream;%0A    %7D%0A%0A    /**%0A     * This method sets RSA instance.%0A     * %0A     * @param rsa%0A     *            The RSA to set%0A     */%0A    public void setRsa(RSA rsa) %7B%0A        this.rsa = rsa;%0A    %7D%0A%0A    /**%0A     * This method creates output stream to write into file.%0A     * %0A     * @param filePath%0A     *            The directory for file location.%0A     * @return The %7B@link OutputStream%7D for file to write.%0A     * @throws FileNotFoundException%0A     */%0A    public OutputStream writeFile(String filePath) throws FileNotFoundException %7B%0A        OutputStream outputStream = null;%0A        File file = new File(filePath);%0A%0A        if (file.exists()) %7B%0A            outputStream = new FileOutputStream(file);%0A        %7D%0A%0A        return outputStream;%0A    %7D%0A%0A
 %7D%0A

Add method for read and write file