|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectbe.fgov.ehealth.etee.crypto.utils.IoUtils
public final class IoUtils
Class grouping useful IO operations.
To limit the dependencies of eHealth's Crypto lib these operations were put here, in stead of adding a dependency to a library like Spring.
| Method Summary | |
|---|---|
static java.io.FileInputStream |
openFileInputStream(java.lang.String pathname)
Opens an InputStream to a file. |
static java.io.FileOutputStream |
openFileOutputStream(java.lang.String pathname)
Opens an OutputStream to a file. |
static byte[] |
readFile(java.lang.String pathname)
Reads the data of a file into a byte[]. |
static java.io.File |
writeToFile(byte[] data,
java.lang.String pathname)
Writes data to a file with the given pathname. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.io.File writeToFile(byte[] data,
java.lang.String pathname)
data - the data to writepathname - the path to the output file
public static byte[] readFile(java.lang.String pathname)
pathname - path of the file to read.
public static java.io.FileInputStream openFileInputStream(java.lang.String pathname)
pathname - path of the file to read.
public static java.io.FileOutputStream openFileOutputStream(java.lang.String pathname)
pathname - path of the file to write to.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||