Codota Logo
DhtPackParser$DhtInfo.setType
Code IndexAdd Codota to your IDE (free)

How to use
setType
method
in
org.eclipse.jgit.storage.dht.DhtPackParser$DhtInfo

Best Java code snippets using org.eclipse.jgit.storage.dht.DhtPackParser$DhtInfo.setType (Showing top 6 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

@Override
protected void onEndWholeObject(PackedObjectInfo info) throws IOException {
  boolean fragmented = currFragments != null;
  endOneObject();
  DhtInfo oe = (DhtInfo) info;
  oe.chunkPtr = currChunkPtr;
  oe.packedSize = currPackedSize;
  oe.inflatedSize = currInflatedSize;
  oe.setType(currType);
  if (fragmented)
    oe.setFragmented();
}
origin: com.madgag/org.eclipse.jgit.storage.dht

@Override
protected void onEndWholeObject(PackedObjectInfo info) throws IOException {
  boolean fragmented = currFragments != null;
  endOneObject();
  DhtInfo oe = (DhtInfo) info;
  oe.chunkPtr = currChunkPtr;
  oe.packedSize = currPackedSize;
  oe.inflatedSize = currInflatedSize;
  oe.setType(currType);
  if (fragmented)
    oe.setFragmented();
}
origin: com.madgag/org.eclipse.jgit.storage.dht

@Override
protected PackedObjectInfo newInfo(AnyObjectId id, UnresolvedDelta delta,
    ObjectId baseId) {
  DhtInfo obj = objectMap.addIfAbsent(new DhtInfo(id));
  if (delta != null) {
    DhtDelta d = (DhtDelta) delta;
    obj.chunkPtr = d.chunkPtr;
    obj.packedSize = d.packedSize;
    obj.inflatedSize = d.inflatedSize;
    obj.base = baseId;
    obj.setType(d.getType());
    if (d.isFragmented())
      obj.setFragmented();
  }
  return obj;
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

@Override
protected PackedObjectInfo newInfo(AnyObjectId id, UnresolvedDelta delta,
    ObjectId baseId) {
  DhtInfo obj = objectMap.addIfAbsent(new DhtInfo(id));
  if (delta != null) {
    DhtDelta d = (DhtDelta) delta;
    obj.chunkPtr = d.chunkPtr;
    obj.packedSize = d.packedSize;
    obj.inflatedSize = d.inflatedSize;
    obj.base = baseId;
    obj.setType(d.getType());
    if (d.isFragmented())
      obj.setFragmented();
  }
  return obj;
}
origin: com.madgag/org.eclipse.jgit.storage.dht

@Override
protected void onInflatedObjectData(PackedObjectInfo obj, int typeCode,
    byte[] data) throws IOException {
  DhtInfo info = (DhtInfo) obj;
  info.inflatedSize = data.length;
  info.setType(typeCode);
  switch (typeCode) {
  case OBJ_COMMIT:
    onCommit(info, data);
    break;
  case OBJ_TREE:
    onTree(data);
    break;
  case OBJ_TAG:
    onTag(data);
    break;
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

@Override
protected void onInflatedObjectData(PackedObjectInfo obj, int typeCode,
    byte[] data) throws IOException {
  DhtInfo info = (DhtInfo) obj;
  info.inflatedSize = data.length;
  info.setType(typeCode);
  switch (typeCode) {
  case OBJ_COMMIT:
    onCommit(info, data);
    break;
  case OBJ_TREE:
    onTree(data);
    break;
  case OBJ_TAG:
    onTag(data);
    break;
  }
}
org.eclipse.jgit.storage.dhtDhtPackParser$DhtInfosetType

Popular methods of DhtPackParser$DhtInfo

  • <init>
  • copyRawTo
  • getCRC
  • getType
  • info
  • isFragmented
  • isInPack
  • isReferenced
  • name
  • setCRC
  • setFragmented
  • setOffset
  • setFragmented,
  • setOffset,
  • setReferenced

Popular in Java

  • Creating JSON documents from java classes using gson
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • ObjectMapper (com.fasterxml.jackson.databind)
    This mapper (or, data binder, or codec) provides functionality for converting between Java objects (
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • URLConnection (java.net)
    The abstract class URLConnection is the superclass of all classes that represent a communications li
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • Runner (org.openjdk.jmh.runner)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now