public class OpenSSHConfig extends java.lang.Object implements ConfigRepository
ConfigRepository
Modifier and Type | Class and Description |
---|---|
(package private) class |
OpenSSHConfig.MyConfig |
ConfigRepository.Config
Modifier and Type | Field and Description |
---|---|
private java.util.Hashtable |
config |
private java.util.Vector |
hosts |
private static java.util.Hashtable |
keymap |
defaultConfig, nullConfig
Constructor and Description |
---|
OpenSSHConfig(java.io.Reader r) |
Modifier and Type | Method and Description |
---|---|
private void |
_parse(java.io.Reader r) |
ConfigRepository.Config |
getConfig(java.lang.String host) |
static OpenSSHConfig |
parse(java.lang.String conf)
Parses the given string, and returns an instance of ConfigRepository.
|
static OpenSSHConfig |
parseFile(java.lang.String file)
Parses the given file, and returns an instance of ConfigRepository.
|
private final java.util.Hashtable config
private final java.util.Vector hosts
private static final java.util.Hashtable keymap
OpenSSHConfig(java.io.Reader r) throws java.io.IOException
java.io.IOException
public static OpenSSHConfig parse(java.lang.String conf) throws java.io.IOException
conf
- string, which includes OpenSSH's configjava.io.IOException
public static OpenSSHConfig parseFile(java.lang.String file) throws java.io.IOException
file
- OpenSSH's config filejava.io.IOException
private void _parse(java.io.Reader r) throws java.io.IOException
java.io.IOException
public ConfigRepository.Config getConfig(java.lang.String host)
getConfig
in interface ConfigRepository