public class OpenSSHConfig extends java.lang.Object implements ConfigRepository
ConfigRepository
ConfigRepository.Config
defaultConfig, nullConfig
限定符和类型 | 方法和说明 |
---|---|
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.
|
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
public ConfigRepository.Config getConfig(java.lang.String host)
getConfig
在接口中 ConfigRepository