List of all members.
Static Public Member Functions |
| static BufferedReader | getReadFileStream (String filename) throws IOException |
| static BufferedWriter | getWriteFileStream (String filename) throws IOException |
| static BufferedWriter | getAppendFileStream (String filename) throws IOException |
| static String | read_line_lzf (BufferedReader in) |
| static boolean | deleteRecursively (File f) |
| static FileOutputStream | writeBytes (int[] data, String filename) throws IOException |
| static void | writeBytes (int[] data, OutputStream out) throws IOException |
| static void | copyFile (String srFile, String dtFile) throws IOException |
| static void | copyFile (File srFile, File dtFile) throws IOException |
| static boolean | deleteFile (String fileName) |
| static String | dirname (String fileName) |
Static Private Attributes |
| static final Charset | FILE_ENCODING = Charset.forName("UTF-8") |
Detailed Description
utility functions for file operations
- Author:
- Zhifei Li, zhife.nosp@m.i.wo.nosp@m.rk@gm.nosp@m.ail..nosp@m.com
-
wren ng thornton wren@.nosp@m.user.nosp@m.s.sou.nosp@m.rcef.nosp@m.orge..nosp@m.net
- Since:
- 28 February 2009
- Version:
- $LastChangedDate$
Member Function Documentation
Recursively delete the specified file or directory.
- Parameters:
-
| f | File or directory to delete |
- Returns:
true if the specified file or directory was deleted, false otherwise
Returns the base directory of the file. For example, dirname('/usr/local/bin/emacs') -> '/usr/local/bin'
Warning, will truncate/overwrite existing files
Writes data from the integer array to disk as raw bytes, overwriting the old file if present.
- Parameters:
-
| data | The integer array to write to disk. |
| filename | The filename where the data should be written. |
- Exceptions:
-
- Returns:
- the FileOutputStream on which the bytes were written
Writes data from the integer array to disk as raw bytes.
- Parameters:
-
| data | The integer array to write to disk. |
| out | The output stream where the data should be written. |
- Exceptions:
-
Member Data Documentation