02/28/2005
 

com.epicentric.common
Class FileData

java.lang.Object
  |
  +--com.epicentric.common.FileData

Deprecated. as of version 4.5, to be removed in 8.0 or later. No replacement.

public class FileData
extends Object

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

DEBUG

public static boolean DEBUG
Deprecated. 

data

public byte[] data
Deprecated. 

len

public int len
Deprecated. 
Constructor Detail

FileData

public FileData(byte[] data)
Deprecated. 

FileData

public FileData(byte[] data,
                int len)
Deprecated. 

FileData

public FileData(String text)
Deprecated. 
Method Detail

getBytes

public byte[] getBytes()
Deprecated. 

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

getString

public static String getString(String file_path)
Deprecated. 

getString

public static String getString(File file)
Deprecated. 

getFileData

public static FileData getFileData(String file_path)
Deprecated. 

getFileData

public static FileData getFileData(File file)
Deprecated. 

getFileData

public static FileData getFileData(String file_path,
                                   int max)
Deprecated. 
Pass-through to getFileData(File, int)
See Also:
FileData.getFileData(File, int)

getFileData

public static FileData getFileData(File file,
                                   int max)
Deprecated. 
Return a FileData with the given int limit on the number of bytes of data.

getBinaryStream

public static InputStream getBinaryStream(File file)
Deprecated. 
Return an inputstream for the specified file.

save

public boolean save(String file_path)
Deprecated. 

save

public boolean save(File file)
Deprecated. 
Save data to given file path. If the file exists, delete it, but if not, do not create directories to make the file's path valid.

02/28/2005
 

Copyright and Trademark Notices