Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 509c2c77f6a29ac204ae45030e4362fa > files > 11

libreadline-java-0.8.1-1.5mdv2008.1.x86_64.rpm

IMPORTANT NOTE
==============

From 0.5.2 to 0.6 there have been two incompatible interface changes:

1. You must call Readline.load(ReadlineLibrary lib); before using any
   other methods.
=====================================================================

If you omit the call to the load()-method, the pure Java fallback
solution is used. Possible values for lib are:

ReadlineLibrary.PureJava
ReadlineLibrary.GnuReadline
ReadlineLibrary.Editline

Note that all programs using Gnu-Readline will fall under the GPL,
since Gnu-Readline is GPL software.

If you want to write portable programs and you are not sure if
GnuReadline/Editline is available on all target machines, use code like

try {
  Readline.load(ReadlineLibrary.GnuReadline);
} catch (Exception e) {
}


2. Readline.readline() now additionally throws an IOException
=============================================================

This is due to the fact that starting from 0.6 the pure Java fallback
solution is supported. Using the native libraries, you should never
see this exception, nevertheless you will have to deal with it.