jtux
Class UDir

java.lang.Object
  extended by jtux.UDir

public class UDir
extends java.lang.Object

Class for directory system calls.


Nested Class Summary
static class UDir.s_dirent
          Java version of C struct dirent.
 
Constructor Summary
UDir()
           
 
Method Summary
static void closedir(long dirp)
          Calls closedir.
static void mkdir(java.lang.String path, int mode)
          Calls mkdir.
static long opendir(java.lang.String path)
          Calls opendir.
static UDir.s_dirent readdir(long dirp)
          Calls readdir_r.
static void rewinddir(long dirp)
          Calls rewinddir.
static void rmdir(java.lang.String path)
          Calls rmdir.
static void seekdir(long dirp, long loc)
          Calls seekdir.
static long telldir(long dirp)
          Calls telldir.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UDir

public UDir()
Method Detail

closedir

public static void closedir(long dirp)
                     throws UErrorException
Calls closedir.

Click here for Posix/SUS C API.

Throws:
UErrorException

mkdir

public static void mkdir(java.lang.String path,
                         int mode)
                  throws UErrorException
Calls mkdir.

Click here for Posix/SUS C API.

Throws:
UErrorException

opendir

public static long opendir(java.lang.String path)
                    throws UErrorException
Calls opendir.

Click here for Posix/SUS C API.

Throws:
UErrorException

readdir

public static UDir.s_dirent readdir(long dirp)
                             throws UErrorException
Calls readdir_r. Uses passes buffer in to C function and creates a new object to be returned on each call.

Click here for Posix/SUS C API.

Throws:
UErrorException

rewinddir

public static void rewinddir(long dirp)
                      throws UErrorException
Calls rewinddir.

Click here for Posix/SUS C API.

Throws:
UErrorException

rmdir

public static void rmdir(java.lang.String path)
                  throws UErrorException
Calls rmdir.

Click here for Posix/SUS C API.

Throws:
UErrorException

seekdir

public static void seekdir(long dirp,
                           long loc)
                    throws UErrorException
Calls seekdir.

Click here for Posix/SUS C API.

Throws:
UErrorException

telldir

public static long telldir(long dirp)
                    throws UErrorException
Calls telldir.

Click here for Posix/SUS C API.

Throws:
UErrorException