JTablet 1.2.0 API

cello.jtablet
Class DriverStatus

java.lang.Object
  extended by cello.jtablet.DriverStatus

public class DriverStatus
extends Object

This class represents the status of the tablet driver. It can be used to determine partial or incomplete installations of JTablet, insufficient security permissions, errors

Author:
marcello

Nested Class Summary
static class DriverStatus.State
          A generalized state of the native tablet driver.
 
Constructor Summary
DriverStatus(DriverStatus.State state)
          Builds a DriverStatus with a given state without an exception.
DriverStatus(DriverStatus.State state, Throwable throwable)
          Builds a DriverStatus with a given state and exception
 
Method Summary
 DriverStatus.State getState()
          Returns the generalized state of the driver.
 Throwable getThrowable()
          Returns the Throwable associated with any driver load failure, or null if not applicable.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DriverStatus

public DriverStatus(DriverStatus.State state)
Builds a DriverStatus with a given state without an exception.

Parameters:
state - the driver state

DriverStatus

public DriverStatus(DriverStatus.State state,
                    Throwable throwable)
Builds a DriverStatus with a given state and exception

Parameters:
state -
throwable -
Method Detail

getState

public DriverStatus.State getState()
Returns the generalized state of the driver. This can be used for a high-level understanding of if the driver failed to load and why.

Returns:
the current state of the driver.

getThrowable

public Throwable getThrowable()
Returns the Throwable associated with any driver load failure, or null if not applicable.

Returns:
an exception thrown in the driver load process

toString

public String toString()
Overrides:
toString in class Object

JTablet 1.2.0 API