|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.uiuc.ndiipp.hubandspoke.utils.HaSFileUtils
public class HaSFileUtils
| Constructor Summary | |
|---|---|
HaSFileUtils()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getBase64MD5(java.io.File f)
Returns the Base64 encoded MD5 Checksum for specified file |
static java.lang.String |
getBase64MD5(java.io.InputStream in)
Returns the Base64 encoded MD5 Checksum for specified InputStream WARNING: This method closes the stream it is passed! If any further processing is required you must re-open the stream. |
static java.io.File |
saveStreamToTempFile(java.io.InputStream is)
Creates a temp file from the stream in the default system location. |
static java.io.File |
saveStreamToTempFile(java.io.InputStream is,
java.lang.String name)
Creates a temp file from the stream in the default system location. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HaSFileUtils()
| Method Detail |
|---|
public static java.io.File saveStreamToTempFile(java.io.InputStream is)
throws java.io.IOException
is - -- InputStream
java.io.IOException
public static java.io.File saveStreamToTempFile(java.io.InputStream is,
java.lang.String name)
throws java.io.IOException
is - -- InputStreamname - -- String denoting what to call the temp file.
java.io.IOException
public static java.lang.String getBase64MD5(java.io.File f)
throws java.io.IOException
f - -- File
java.io.IOException
public static java.lang.String getBase64MD5(java.io.InputStream in)
throws java.io.IOException
in - -- InputStream
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||