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 StringFILE_SUFFIX
-
Constructor Summary
Constructors Constructor Description SecureFile()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcreateCyptedFile(File file, String code, InputStream in)static FilecreateSecuredFile(File file)static InputStreamdecodeCyptedFile(File file, String code)static voiddecodeCyptedFile(File file, String code, OutputStream out)static booleanisExist(File file)static voidmain(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:
FileNotFoundExceptionIOException
-
-