public class OpenSSHConfig extends java.lang.Object implements ConfigRepository
ConfigRepositoryConfigRepository.ConfigdefaultConfig, 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.IOExceptionpublic static OpenSSHConfig parseFile(java.lang.String file) throws java.io.IOException
file - OpenSSH's config filejava.io.IOExceptionpublic ConfigRepository.Config getConfig(java.lang.String host)
getConfig 在接口中 ConfigRepository