Tabnine Logo
DirCacheTree.write
Code IndexAdd Tabnine to your IDE (free)

How to use
write
method
in
org.eclipse.jgit.dircache.DirCacheTree

Best Java code snippets using org.eclipse.jgit.dircache.DirCacheTree.write (Showing top 6 results out of 315)

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

void write(byte[] tmp, OutputStream os) throws IOException {
  int ptr = tmp.length;
  tmp[--ptr] = '\n';
  ptr = RawParseUtils.formatBase10(tmp, ptr, childCnt);
  tmp[--ptr] = ' ';
  ptr = RawParseUtils.formatBase10(tmp, ptr, isValid() ? entrySpan : -1);
  tmp[--ptr] = 0;
  os.write(encodedName);
  os.write(tmp, ptr, tmp.length - ptr);
  if (isValid()) {
    id.copyRawTo(tmp, 0);
    os.write(tmp, 0, Constants.OBJECT_ID_LENGTH);
  }
  for (int i = 0; i < childCnt; i++)
    children[i].write(tmp, os);
}
origin: org.eclipse.jgit/org.eclipse.jgit

tree.write(tmp, bb);
bb.close();
origin: sonia.jgit/org.eclipse.jgit

void write(final byte[] tmp, final OutputStream os) throws IOException {
  int ptr = tmp.length;
  tmp[--ptr] = '\n';
  ptr = RawParseUtils.formatBase10(tmp, ptr, childCnt);
  tmp[--ptr] = ' ';
  ptr = RawParseUtils.formatBase10(tmp, ptr, isValid() ? entrySpan : -1);
  tmp[--ptr] = 0;
  os.write(encodedName);
  os.write(tmp, ptr, tmp.length - ptr);
  if (isValid()) {
    id.copyRawTo(tmp, 0);
    os.write(tmp, 0, Constants.OBJECT_ID_LENGTH);
  }
  for (int i = 0; i < childCnt; i++)
    children[i].write(tmp, os);
}
origin: berlam/github-bucket

void write(byte[] tmp, OutputStream os) throws IOException {
  int ptr = tmp.length;
  tmp[--ptr] = '\n';
  ptr = RawParseUtils.formatBase10(tmp, ptr, childCnt);
  tmp[--ptr] = ' ';
  ptr = RawParseUtils.formatBase10(tmp, ptr, isValid() ? entrySpan : -1);
  tmp[--ptr] = 0;
  os.write(encodedName);
  os.write(tmp, ptr, tmp.length - ptr);
  if (isValid()) {
    id.copyRawTo(tmp, 0);
    os.write(tmp, 0, Constants.OBJECT_ID_LENGTH);
  }
  for (int i = 0; i < childCnt; i++)
    children[i].write(tmp, os);
}
origin: sonia.jgit/org.eclipse.jgit

TemporaryBuffer bb = new TemporaryBuffer.LocalFile(dir, 5 << 20);
try {
  tree.write(tmp, bb);
  bb.close();
origin: berlam/github-bucket

tree.write(tmp, bb);
bb.close();
org.eclipse.jgit.dircacheDirCacheTreewrite

Javadoc

Write (if necessary) this tree to the object store.

Popular methods of DirCacheTree

  • getChild
    Get the i-th child cache tree.
  • getChildCount
    Get the number of cached subtrees contained within this tree.
  • getEntrySpan
    Get the number of entries this tree spans within the DirCache. If this tree is not valid (see #isVal
  • <init>
  • appendName
  • computeSize
  • contains
  • getNameString
    Get the tree's name within its parent. This method is not very efficient and is primarily meant for
  • getObjectId
    Get the tree's ObjectId. If #isValid() returns false this method will return null.
  • insertChild
  • isValid
    Determine if this cache is currently valid. A valid cache tree knows how many org.eclipse.jgit.dirca
  • nameLength
  • isValid,
  • nameLength,
  • namecmp,
  • peq,
  • removeChild,
  • slash,
  • validate,
  • writeTree,
  • getPathString

Popular in Java

  • Reading from database using SQL prepared statement
  • startActivity (Activity)
  • scheduleAtFixedRate (Timer)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Best plugins for Eclipse
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