name.pachler.nio.file.impl
Class Unix

java.lang.Object
  extended by name.pachler.nio.file.impl.Unix
Direct Known Subclasses:
BSD, Linux, Solaris

public abstract class Unix
extends java.lang.Object


Nested Class Summary
static class Unix.timespec
           
 
Constructor Summary
Unix()
           
 
Method Summary
protected static int getIntDefine(java.lang.String definedName)
          This function retreives a value that is defined in the operating system's headers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Unix

public Unix()
Method Detail

getIntDefine

protected static int getIntDefine(java.lang.String definedName)
This function retreives a value that is defined in the operating system's headers. Because values like open()'s O_CREAT flag, errno values like EBADF and other values might be defined differently on different OS flavours, it is not sufficient to simply hard-code them in the OS wrapper class. Therefore, OS Wrapper classes use a lookup mechanism to initialize their static final variables. So for instance, the O_CREAT flag for Unix's open() is defined as static final int O_CREAT member variable, initialized to the return value of the getIntDefine("O_CREAT") function call. If a defined name is given that is not known to the native implementation, an IllegalArgumentException is thrown

Parameters:
definedName - name of the define to look up
Returns:
the integer value associated with the given definedName.