The Java-Readline Library, Version 0.8.0

org.gnu.readline
Class ReadlineLibrary

java.lang.Object
  |
  +--org.gnu.readline.ReadlineLibrary

public final class ReadlineLibrary
extends java.lang.Object

This class implements a typesafe enumeration of the backing libraries.

Version:
$Revision: 1.4 $
Author:
$Author: bablokb $

Field Summary
static ReadlineLibrary Editline
          Constant for Editline implementation.
static ReadlineLibrary Getline
          Constant for Getline implementation.
static ReadlineLibrary GnuReadline
          Constant for GNU-Readline implementation.
static ReadlineLibrary PureJava
          Constant for fallback, pure Java implementation.
 
Method Summary
static ReadlineLibrary byName(java.lang.String name)
          Return ReadlineLibrary-object with given name.
 java.lang.String getName()
          Query name of backing library.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PureJava

public static final ReadlineLibrary PureJava
Constant for fallback, pure Java implementation.


GnuReadline

public static final ReadlineLibrary GnuReadline
Constant for GNU-Readline implementation.


Editline

public static final ReadlineLibrary Editline
Constant for Editline implementation.


Getline

public static final ReadlineLibrary Getline
Constant for Getline implementation.

Method Detail

getName

public java.lang.String getName()
Query name of backing library.

Returns:
Name of backing library, or "PureJava", in case fallback implementation is used.

byName

public static ReadlineLibrary byName(java.lang.String name)
Return ReadlineLibrary-object with given name.

Returns:
one of the predefined constants

The Java-Readline Library, Version 0.8.0

Released under the LGPL, (c) Bernhard Bablok, Henner Zeller 1998-2002
Homepage: http://java-readline.sourceforge.net/