|
||||||||
| PREV CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
public interface DataFile
An object that contains a handle to an uploaded file and supporting operations
| Method Summary | |
|---|---|
java.lang.String |
base64()
Returns the base64 encoding of this file. |
void |
close()
close the corresponding file and related resources |
boolean |
isOpen()
determine if the underlying file is currently open |
java.lang.String |
md5()
Returns the MD5 of this file in hex string form. |
java.lang.Object |
md5(boolean binary)
Returns the MD5 of this file in hex string form or binary form. |
java.lang.String |
readContents()
read the entire contents of a file If a reader has not been instantiated then one will be and closed upon completion |
java.lang.String |
readLine()
read a line using the current reader If a reader has not been instantiated then one will be |
| Method Detail |
|---|
java.lang.String readLine()
throws java.io.IOException
String containing the content that was read
java.io.IOException - thrown when there was a problem reading the file
java.lang.String readContents()
throws java.io.IOException
String containing the content that was read
java.io.IOException - thrown when there was a problem reading the fileboolean isOpen()
boolean true if file is open, false if not
void close()
throws java.io.IOException
java.io.IOException - thrown when there was a problem closing the filejava.lang.String md5()
Utils.md5(Object)java.lang.Object md5(boolean binary)
binary - whether to return a binary or hex string MD5
BytesUtils.md5(Object, boolean)java.lang.String base64()
Utils.base64(Object)
|
© 2023 Vercara, LLC. All Rights Reserved. | |||||||
| PREV CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||