|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.epicentric.common.FileData
Utility methods providing access to a single file. Operations include retrieving the file as a String, Stream, or byte array.
| Field Summary | |
byte[] |
data
Deprecated. |
static boolean |
DEBUG
Deprecated. |
int |
len
Deprecated. |
| Constructor Summary | |
FileData(byte[] data)
Deprecated. |
|
FileData(byte[] data,
int len)
Deprecated. |
|
FileData(String text)
Deprecated. |
|
| Method Summary | |
static InputStream |
getBinaryStream(File file)
Deprecated. Return an inputstream for the specified file. |
byte[] |
getBytes()
Deprecated. |
static FileData |
getFileData(File file)
Deprecated. |
static FileData |
getFileData(File file,
int max)
Deprecated. Return a FileData with the given int limit on the number of bytes of data. |
static FileData |
getFileData(String file_path)
Deprecated. |
static FileData |
getFileData(String file_path,
int max)
Deprecated. Pass-through to getFileData(File, int) |
static String |
getString(File file)
Deprecated. |
static String |
getString(String file_path)
Deprecated. |
boolean |
save(File file)
Deprecated. Save data to given file path. |
boolean |
save(String file_path)
Deprecated. |
String |
toString()
Deprecated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static boolean DEBUG
public byte[] data
public int len
| Constructor Detail |
public FileData(byte[] data)
public FileData(byte[] data,
int len)
public FileData(String text)
| Method Detail |
public byte[] getBytes()
public String toString()
toString in class Objectpublic static String getString(String file_path)
public static String getString(File file)
public static FileData getFileData(String file_path)
public static FileData getFileData(File file)
public static FileData getFileData(String file_path,
int max)
FileData.getFileData(File, int)
public static FileData getFileData(File file,
int max)
public static InputStream getBinaryStream(File file)
public boolean save(String file_path)
public boolean save(File file)
|
02/28/2005 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||