| java.lang.Object org.apache.tomcat.jni.Directory
Directory | public class Directory (Code) | | Directory
author: Mladen Turk version: $Revision: 467222 $, $Date: 2006-10-24 05:17:11 +0200 (mar., 24 oct. 2006) $ |
Method Summary | |
native public static int | close(long thedir) close the specified directory. | native public static int | make(String path, int perm, long pool) Create a new directory on the file system.
Parameters: path - the path for the directory to be created. | native public static int | makeRecursive(String path, int perm, long pool) Creates a new directory on the file system, but behaves like
'mkdir -p'. | native public static long | open(String dirname, long pool) Open the specified directory.
Parameters: dirname - The full path to the directory (use / on all systems) Parameters: pool - The pool to use. | native public static int | read(FileInfo finfo, int wanted, long thedir) Read the next entry from the specified directory. | native public static int | remove(String path, long pool) Remove directory from the file system.
Parameters: path - the path for the directory to be removed. | native public static int | rewind(long thedir) Rewind the directory to the first entry. | native public static String | tempGet(long pool) Find an existing directory suitable as a temporary storage location.
Parameters: pool - The pool to use for any necessary allocations. |
close | native public static int close(long thedir)(Code) | | close the specified directory.
Parameters: thedir - the directory descriptor to close. |
make | native public static int make(String path, int perm, long pool)(Code) | | Create a new directory on the file system.
Parameters: path - the path for the directory to be created. (use / on all systems) Parameters: perm - Permissions for the new direcoty. Parameters: pool - the pool to use. |
makeRecursive | native public static int makeRecursive(String path, int perm, long pool)(Code) | | Creates a new directory on the file system, but behaves like
'mkdir -p'. Creates intermediate directories as required. No error
will be reported if PATH already exists.
Parameters: path - the path for the directory to be created. (use / on all systems) Parameters: perm - Permissions for the new direcoty. Parameters: pool - the pool to use. |
open | native public static long open(String dirname, long pool) throws Error(Code) | | Open the specified directory.
Parameters: dirname - The full path to the directory (use / on all systems) Parameters: pool - The pool to use. The opened directory descriptor. |
read | native public static int read(FileInfo finfo, int wanted, long thedir)(Code) | | Read the next entry from the specified directory.
Parameters: finfo - the file info structure and filled in by apr_dir_read Parameters: wanted - The desired apr_finfo_t fields, as a bit flag of APR_FINFO_ values Parameters: thedir - the directory descriptor returned from apr_dir_openNo ordering is guaranteed for the entries read. |
remove | native public static int remove(String path, long pool)(Code) | | Remove directory from the file system.
Parameters: path - the path for the directory to be removed. (use / on all systems) Parameters: pool - the pool to use. |
rewind | native public static int rewind(long thedir)(Code) | | Rewind the directory to the first entry.
Parameters: thedir - the directory descriptor to rewind. |
tempGet | native public static String tempGet(long pool)(Code) | | Find an existing directory suitable as a temporary storage location.
Parameters: pool - The pool to use for any necessary allocations. The temp directory.This function uses an algorithm to search for a directory that anan application can use for temporary storage. Once such adirectory is found, that location is cached by the library. Thus,callers only pay the cost of this algorithm once if that one timeis successful. |
|
|