Package net.ontopia.utils
Class EncryptionUtils
- java.lang.Object
-
- net.ontopia.utils.EncryptionUtils
-
public class EncryptionUtils extends Object
INTERNAL: Utilities for encrypting files. Replaces the old EncryptionWriter.- Since:
- 1.3.3
-
-
Constructor Summary
Constructors Constructor Description EncryptionUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
encrypt(File file)
INTERNAL: Reads the file into memory, encrypting it in the process, then writes the encrypted data back out to the file.static void
encrypt(File infile, File outfile)
INTERNAL: Reads in the infile and writes the encrypted result into the outfile.static void
encrypt(InputStream in, OutputStream out)
INTERNAL: Reads all the data in the InputStream, encrypts it, and writes it to the OutputStream.
-
-
-
Method Detail
-
encrypt
public static void encrypt(File file) throws IOException
INTERNAL: Reads the file into memory, encrypting it in the process, then writes the encrypted data back out to the file.- Throws:
IOException
-
encrypt
public static void encrypt(File infile, File outfile) throws IOException
INTERNAL: Reads in the infile and writes the encrypted result into the outfile.- Throws:
IOException
-
encrypt
public static void encrypt(InputStream in, OutputStream out) throws IOException
INTERNAL: Reads all the data in the InputStream, encrypts it, and writes it to the OutputStream.- Throws:
IOException
-
-