com.darwinsys.io
Class NextFD

java.lang.Object
  extended by com.darwinsys.io.NextFD

public class NextFD
extends java.lang.Object

Simple wrapper class for native nextfd method; nextfd is used to watch filedesc leaks.


Field Summary
static java.lang.String LIBRARY_NAME
          The name of the shared library
 
Constructor Summary
NextFD()
           
 
Method Summary
static int getNextFD()
          Public method to try to return the next available file descriptor, if available.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIBRARY_NAME

public static final java.lang.String LIBRARY_NAME
The name of the shared library

See Also:
Constant Field Values
Constructor Detail

NextFD

public NextFD()
Method Detail

getNextFD

public static int getNextFD()
Public method to try to return the next available file descriptor, if available.

Returns:
the next free system file descriptor, or INVALID_FD (-1) if not available.


Copyright © 1996-2004 Ian F. Darwin. See license.html for usage license.