Tabnine Logo
OpenSshConfigFile$State.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.eclipse.jgit.internal.transport.ssh.OpenSshConfigFile$State
constructor

Best Java code snippets using org.eclipse.jgit.internal.transport.ssh.OpenSshConfigFile$State.<init> (Showing top 4 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit

private synchronized State refresh() {
  final long mtime = configFile.lastModified();
  if (mtime != lastModified) {
    State newState = new State();
    try (BufferedReader br = Files
        .newBufferedReader(configFile.toPath(), UTF_8)) {
      newState.entries = parse(br);
    } catch (IOException | RuntimeException none) {
      // Ignore -- we'll set and return an empty state
    }
    lastModified = mtime;
    state = newState;
  }
  return state;
}
origin: berlam/github-bucket

private synchronized State refresh() {
  final long mtime = configFile.lastModified();
  if (mtime != lastModified) {
    State newState = new State();
    try (BufferedReader br = Files
        .newBufferedReader(configFile.toPath(), UTF_8)) {
      newState.entries = parse(br);
    } catch (IOException | RuntimeException none) {
      // Ignore -- we'll set and return an empty state
    }
    lastModified = mtime;
    state = newState;
  }
  return state;
}
origin: berlam/github-bucket

/**
 * Creates a new {@link OpenSshConfigFile} that will read the config from
 * file {@code config} use the given file {@code home} as "home" directory.
 *
 * @param home
 *            user's home directory for the purpose of ~ replacement
 * @param config
 *            file to load.
 * @param localUserName
 *            user name of the current user on the local host OS
 */
public OpenSshConfigFile(@NonNull File home, @NonNull File config,
    @NonNull String localUserName) {
  this.home = home;
  this.configFile = config;
  this.localUserName = localUserName;
  state = new State();
}
origin: org.eclipse.jgit/org.eclipse.jgit

/**
 * Creates a new {@link OpenSshConfigFile} that will read the config from
 * file {@code config} use the given file {@code home} as "home" directory.
 *
 * @param home
 *            user's home directory for the purpose of ~ replacement
 * @param config
 *            file to load.
 * @param localUserName
 *            user name of the current user on the local host OS
 */
public OpenSshConfigFile(@NonNull File home, @NonNull File config,
    @NonNull String localUserName) {
  this.home = home;
  this.configFile = config;
  this.localUserName = localUserName;
  state = new State();
}
org.eclipse.jgit.internal.transport.sshOpenSshConfigFile$State<init>

Popular methods of OpenSshConfigFile$State

    Popular in Java

    • Finding current android device location
    • scheduleAtFixedRate (Timer)
    • setScale (BigDecimal)
    • getApplicationContext (Context)
    • FileInputStream (java.io)
      An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
    • FileNotFoundException (java.io)
      Thrown when a file specified by a program cannot be found.
    • Proxy (java.net)
      This class represents proxy server settings. A created instance of Proxy stores a type and an addres
    • Selector (java.nio.channels)
      A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
    • StringTokenizer (java.util)
      Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
    • JComboBox (javax.swing)
    • Top Sublime Text plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now