net.ontopia.utils
Class EncryptionUtils

java.lang.Object
  extended by net.ontopia.utils.EncryptionUtils

public class EncryptionUtils
extends java.lang.Object

INTERNAL: Utilities for encrypting files. Replaces the old EncryptionWriter.

Since:
1.3.3

Constructor Summary
EncryptionUtils()
           
 
Method Summary
static void encrypt(java.io.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(java.io.File infile, java.io.File outfile)
          INTERNAL: Reads in the infile and writes the encrypted result into the outfile.
static void encrypt(java.io.InputStream in, java.io.OutputStream out)
          INTERNAL: Reads all the data in the InputStream, encrypts it, and writes it to the OutputStream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EncryptionUtils

public EncryptionUtils()
Method Detail

encrypt

public static void encrypt(java.io.File file)
                    throws java.io.IOException
INTERNAL: Reads the file into memory, encrypting it in the process, then writes the encrypted data back out to the file.

Throws:
java.io.IOException

encrypt

public static void encrypt(java.io.File infile,
                           java.io.File outfile)
                    throws java.io.IOException
INTERNAL: Reads in the infile and writes the encrypted result into the outfile.

Throws:
java.io.IOException

encrypt

public static void encrypt(java.io.InputStream in,
                           java.io.OutputStream out)
                    throws java.io.IOException
INTERNAL: Reads all the data in the InputStream, encrypts it, and writes it to the OutputStream.

Throws:
java.io.IOException


Copyright © 2000-2012 Ontopia.