org.gnu.readline

Class 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(String name)
Return ReadlineLibrary-object with given name.
String
getName()
Query name of backing library.

Field Details

Editline

public static final ReadlineLibrary Editline
Constant for Editline implementation.

Getline

public static final ReadlineLibrary Getline
Constant for Getline implementation.

GnuReadline

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

PureJava

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

Method Details

byName

public static ReadlineLibrary byName(String name)
Return ReadlineLibrary-object with given name.
Returns:
one of the predefined constants

getName

public String getName()
Query name of backing library.
Returns:
Name of backing library, or "PureJava", in case fallback implementation is used.

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