Class FileHistory

java.lang.Object
jline.console.history.MemoryHistory
jline.console.history.FileHistory
All Implemented Interfaces:
Flushable, Iterable<History.Entry>, History, PersistentHistory

public class FileHistory extends MemoryHistory implements PersistentHistory, Flushable
History using a file for persistent backing.

Implementers should install shutdown hook to call flush() to save history to disk.

Since:
2.0
Author:
Jason Dillon