|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cometway.io.FileTools
public abstract class FileTools
A utility class for common file related operations.
| Constructor Summary | |
|---|---|
FileTools()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
getFileModifiedString(java.io.File f,
java.text.SimpleDateFormat sdf)
Returns a String describing the modification of the specified File using the specified SimpleDateFormat as a template. |
static java.lang.String |
getFileSizeString(java.io.File f)
Returns a string describing the size of the specified File. |
static void |
writeFile(java.io.File file,
java.io.File tempFile,
byte[] filedata)
Writes the bytes contained in filedata to the specified File. |
static void |
writeFile(java.lang.String filename,
byte[] filedata)
Writes the bytes contained in filedata to the specified file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileTools()
| Method Detail |
|---|
public static java.lang.String getFileModifiedString(java.io.File f,
java.text.SimpleDateFormat sdf)
public static java.lang.String getFileSizeString(java.io.File f)
public static void writeFile(java.lang.String filename,
byte[] filedata)
throws FileToolsException
FileToolsException
public static void writeFile(java.io.File file,
java.io.File tempFile,
byte[] filedata)
throws FileToolsException
FileToolsException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||