Package org.eclipse.jgit.lib

Examples of org.eclipse.jgit.lib.ObjectChecker$Normalizer


   *
   * @param on
   *            true to enable the default checker; false to disable it.
   */
  public void setObjectChecking(final boolean on) {
    setObjectChecker(on ? new ObjectChecker() : null);
  }
View Full Code Here


   *
   * @param on
   *            true to enable the default checker; false to disable it.
   */
  public void setObjectChecking(final boolean on) {
    setObjectChecker(on ? new ObjectChecker() : null);
  }
View Full Code Here

  private final ObjectReader reader;

  WalkFetchConnection(final WalkTransport t, final WalkRemoteObjectDatabase w) {
    Transport wt = (Transport)t;
    local = wt.local;
    objCheck = wt.isCheckFetchedObjects() ? new ObjectChecker() : null;
    inserter = local.newObjectInserter();
    reader = local.newObjectReader();

    remotes = new ArrayList<WalkRemoteObjectDatabase>();
    remotes.add(w);
View Full Code Here

   *
   * @param on
   *            true to enable the default checker; false to disable it.
   */
  public void setObjectChecking(final boolean on) {
    setObjectChecker(on ? new ObjectChecker() : null);
  }
View Full Code Here

        }
        catch (NoSuchFieldException e)
        {
            throw new RuntimeException(e);
        }
        objCheck = wt.isCheckFetchedObjects() ? new ObjectChecker() : null;
    inserter = local.newObjectInserter();
    reader = local.newObjectReader();

    remotes = new ArrayList<WalkRemoteObjectDatabase>();
    remotes.add(w);
View Full Code Here

   *
   * @param on
   *            true to enable the default checker; false to disable it.
   */
  public void setObjectChecking(final boolean on) {
    setObjectChecker(on ? new ObjectChecker() : null);
  }
View Full Code Here

   *
   * @param on
   *            true to enable the default checker; false to disable it.
   */
  public void setObjectChecking(final boolean on) {
    setObjectChecker(on ? new ObjectChecker() : null);
  }
View Full Code Here

      entry.setLength((int) ol.getSize());
  }

  private static void checkValidPath(CanonicalTreeParser t)
      throws InvalidPathException {
    ObjectChecker chk = new ObjectChecker()
      .setSafeForWindows(SystemReader.getInstance().isWindows())
      .setSafeForMacOS(SystemReader.getInstance().isMacOS());
    for (CanonicalTreeParser i = t; i != null; i = i.getParent())
      checkValidPathSegment(chk, i);
  }
View Full Code Here

   * @throws InvalidPathException
   *             if the path is invalid
   * @since 3.3
   */
  public static void checkValidPath(String path) throws InvalidPathException {
    ObjectChecker chk = new ObjectChecker()
      .setSafeForWindows(SystemReader.getInstance().isWindows())
      .setSafeForMacOS(SystemReader.getInstance().isMacOS());

    byte[] bytes = Constants.encode(path);
    int segmentStart = 0;
    try {
      for (int i = 0; i < bytes.length; i++) {
        if (bytes[i] == '/') {
          chk.checkPathSegment(bytes, segmentStart, i);
          segmentStart = i + 1;
        }
      }
      chk.checkPathSegment(bytes, segmentStart, bytes.length);
    } catch (CorruptObjectException e) {
      throw new InvalidPathException(e.getMessage());
    }
  }
View Full Code Here

  private final ObjectReader reader;

  WalkFetchConnection(final WalkTransport t, final WalkRemoteObjectDatabase w) {
    Transport wt = (Transport)t;
    local = wt.local;
    objCheck = wt.isCheckFetchedObjects() ? new ObjectChecker() : null;
    inserter = local.newObjectInserter();
    reader = local.newObjectReader();

    remotes = new ArrayList<WalkRemoteObjectDatabase>();
    remotes.add(w);
View Full Code Here

TOP

Related Classes of org.eclipse.jgit.lib.ObjectChecker$Normalizer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.