Package org.javlo.io
Class SecureFile
- java.lang.Object
-
- org.javlo.io.SecureFile
-
public class SecureFile extends Object
write and read file with encryption- Author:
- user
-
-
Field Summary
Fields Modifier and Type Field Description static String
FILE_SUFFIX
-
Constructor Summary
Constructors Constructor Description SecureFile()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createCyptedFile(File file, String code, InputStream in)
static File
createSecuredFile(File file)
static InputStream
decodeCyptedFile(File file, String code)
static void
decodeCyptedFile(File file, String code, OutputStream out)
static boolean
isExist(File file)
static void
main(String[] args)
-
-
-
Field Detail
-
FILE_SUFFIX
public static final String FILE_SUFFIX
- See Also:
- Constant Field Values
-
-
Method Detail
-
isExist
public static boolean isExist(File file)
-
createCyptedFile
public static void createCyptedFile(File file, String code, InputStream in) throws IOException
- Throws:
IOException
-
decodeCyptedFile
public static void decodeCyptedFile(File file, String code, OutputStream out) throws IOException
- Throws:
IOException
-
decodeCyptedFile
public static InputStream decodeCyptedFile(File file, String code) throws IOException
- Throws:
IOException
-
main
public static void main(String[] args) throws FileNotFoundException, IOException
- Throws:
FileNotFoundException
IOException
-
-