|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tomcat.jni.Directory
public class Directory
Directory
Constructor Summary | |
---|---|
Directory()
|
Method Summary | |
---|---|
static int |
close(long thedir)
close the specified directory. |
static int |
make(java.lang.String path,
int perm,
long pool)
Create a new directory on the file system. |
static int |
makeRecursive(java.lang.String path,
int perm,
long pool)
Creates a new directory on the file system, but behaves like 'mkdir -p'. |
static long |
open(java.lang.String dirname,
long pool)
Open the specified directory. |
static int |
read(FileInfo finfo,
int wanted,
long thedir)
Read the next entry from the specified directory. |
static int |
remove(java.lang.String path,
long pool)
Remove directory from the file system. |
static int |
rewind(long thedir)
Rewind the directory to the first entry. |
static java.lang.String |
tempGet(long pool)
Find an existing directory suitable as a temporary storage location. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Directory()
Method Detail |
---|
public static int make(java.lang.String path, int perm, long pool)
path
- the path for the directory to be created. (use / on all systems)perm
- Permissions for the new directory.pool
- the pool to use.public static int makeRecursive(java.lang.String path, int perm, long pool)
path
- the path for the directory to be created. (use / on all systems)perm
- Permissions for the new directory.pool
- the pool to use.public static int remove(java.lang.String path, long pool)
path
- the path for the directory to be removed. (use / on all systems)pool
- the pool to use.public static java.lang.String tempGet(long pool)
pool
- The pool to use for any necessary allocations.
public static long open(java.lang.String dirname, long pool) throws Error
dirname
- The full path to the directory (use / on all systems)pool
- The pool to use.
Error
public static int close(long thedir)
thedir
- the directory descriptor to close.public static int rewind(long thedir)
thedir
- the directory descriptor to rewind.public static int read(FileInfo finfo, int wanted, long thedir)
finfo
- the file info structure and filled in by apr_dir_readwanted
- The desired apr_finfo_t fields, as a bit flag of APR_FINFO_ valuesthedir
- the directory descriptor returned from apr_dir_open
No ordering is guaranteed for the entries read.
|
Apache Tomcat 6.0.53 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |