|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjline.console.history.MemoryHistory
jline.console.history.FileHistory
org.apache.karaf.shell.console.jline.KarafFileHistory
public final class KarafFileHistory
Override the FileHistory impl to trap failures due to the user does not having write access to the history file.
| 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 | |
|---|---|
KarafFileHistory(File file)
|
|
| Method Summary | |
|---|---|
void |
add(CharSequence item)
|
void |
flush()
|
void |
load(Reader reader)
|
void |
purge()
|
| Methods inherited from class jline.console.history.FileHistory |
|---|
getFile, load, load |
| Methods inherited from class jline.console.history.MemoryHistory |
|---|
clear, current, entries, entries, get, getMaxSize, index, internalAdd, isAutoTrim, isEmpty, isIgnoreDuplicates, iterator, moveTo, moveToEnd, moveToFirst, moveToLast, next, previous, remove, removeFirst, removeLast, replace, set, 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.History |
|---|
clear, current, entries, entries, get, index, isEmpty, iterator, moveTo, moveToEnd, moveToFirst, moveToLast, next, previous, remove, removeFirst, removeLast, replace, set, size |
| Constructor Detail |
|---|
public KarafFileHistory(File file)
throws IOException
IOException| Method Detail |
|---|
public void add(CharSequence item)
add in interface jline.console.history.Historyadd in class jline.console.history.MemoryHistory
public void load(Reader reader)
throws IOException
load in class jline.console.history.FileHistoryIOException
public void flush()
throws IOException
flush in interface Flushableflush in interface jline.console.history.PersistentHistoryflush in class jline.console.history.FileHistoryIOException
public void purge()
throws IOException
purge in interface jline.console.history.PersistentHistorypurge in class jline.console.history.FileHistoryIOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||