@Deprecated public class FileCompleter extends Object implements Completer
A file name completer takes the buffer and issues a list of potential completions.
This completer tries to behave as similar as possible to bash's file name completion (using GNU readline) with the following exceptions:
| Constructor and Description |
|---|
FileCompleter(org.apache.felix.service.command.CommandSession session)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
complete(String buffer,
int cursor,
List<String> candidates)
Deprecated.
|
protected File |
getUserDir()
Deprecated.
|
protected File |
getUserHome()
Deprecated.
|
static boolean |
isWindows()
Deprecated.
|
protected int |
matchFiles(String buffer,
String translated,
File[] files,
List<String> candidates)
Deprecated.
|
protected CharSequence |
render(File file,
CharSequence name)
Deprecated.
|
protected String |
separator()
Deprecated.
|
public FileCompleter(org.apache.felix.service.command.CommandSession session)
public static boolean isWindows()
protected String separator()
protected File getUserHome()
protected File getUserDir()
protected int matchFiles(String buffer, String translated, File[] files, List<String> candidates)
protected CharSequence render(File file, CharSequence name)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.