com.buglabs.bug.jni.common
Class CharDeviceUtils

java.lang.Object
  extended by com.buglabs.bug.jni.common.CharDeviceUtils

public class CharDeviceUtils
extends java.lang.Object

Utility methods for CharDevice objects


Constructor Summary
CharDeviceUtils()
           
 
Method Summary
static void openDeviceWithRetry(CharDevice d, java.lang.String devnode, int attempts)
           
static void openDeviceWithRetry(CharDevice d, java.lang.String devnode, int flags, int attempts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CharDeviceUtils

public CharDeviceUtils()
Method Detail

openDeviceWithRetry

public static void openDeviceWithRetry(CharDevice d,
                                       java.lang.String devnode,
                                       int attempts)
                                throws java.lang.Exception
Throws:
java.lang.Exception

openDeviceWithRetry

public static void openDeviceWithRetry(CharDevice d,
                                       java.lang.String devnode,
                                       int flags,
                                       int attempts)
                                throws java.lang.Exception
Throws:
java.lang.Exception