org.sonatype.gshell.shell
Class ShellHistory

java.lang.Object
  extended by jline.console.history.MemoryHistory
      extended by jline.console.history.FileHistory
          extended by org.sonatype.gshell.shell.ShellHistory
All Implemented Interfaces:
Flushable, Iterable<jline.console.history.History.Entry>, jline.console.history.History, jline.console.history.PersistentHistory

public class ShellHistory
extends jline.console.history.FileHistory
implements History

Implementation of History for JLine.

Since:
2.0
Author:
Jason Dillon

Nested Class Summary
 
Nested classes/interfaces inherited from interface jline.console.history.History
jline.console.history.History.Entry
 
Field Summary
 
Fields inherited from class jline.console.history.MemoryHistory
DEFAULT_MAX_SIZE
 
Constructor Summary
ShellHistory(File file)
           
 
Method Summary
 
Methods inherited from class jline.console.history.FileHistory
flush, getFile, load, load, load, purge
 
Methods inherited from class jline.console.history.MemoryHistory
add, clear, current, entries, entries, get, getMaxSize, index, isAutoTrim, isEmpty, isIgnoreDuplicates, iterator, moveTo, moveToEnd, moveToFirst, moveToLast, next, previous, replace, setAutoTrim, setIgnoreDuplicates, setMaxSize, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface jline.console.history.PersistentHistory
flush, purge
 
Methods inherited from interface jline.console.history.History
add, clear, current, entries, entries, get, index, isEmpty, iterator, moveTo, moveToEnd, moveToFirst, moveToLast, next, previous, replace, size
 

Constructor Detail

ShellHistory

public ShellHistory(File file)
             throws IOException
Throws:
IOException


Copyright © 2008-2011 Sonatype. All Rights Reserved.