congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
PackOutputStream
Code IndexAdd Tabnine to your IDE (free)

How to use
PackOutputStream
in
org.eclipse.jgit.storage.pack

Best Java code snippets using org.eclipse.jgit.storage.pack.PackOutputStream (Showing top 8 results out of 315)

origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

void copyEntireChunkAsIs(PackOutputStream out, DhtObjectToPack obj,
    boolean validate) throws IOException {
  if (validate && !isValid()) {
    if (obj != null)
      throw new CorruptObjectException(obj, MessageFormat.format(
          DhtText.get().corruptChunk, getChunkKey()));
    else
      throw new DhtException(MessageFormat.format(
          DhtText.get().corruptChunk, getChunkKey()));
  }
  // Do not copy the trailer onto the output stream.
  out.write(dataBuf, dataPtr, dataLen - TRAILER_SIZE);
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

@SuppressWarnings("unchecked")
public void writeObjects(PackOutputStream out, List<ObjectToPack> objects)
    throws IOException {
  prefetcher = prefetch(0, readerOptions.getWriteObjectsPrefetchRatio());
  try {
    List itr = objects;
    new ObjectWriter(this, prefetcher).plan(itr);
    for (ObjectToPack otp : objects)
      out.writeObject(otp);
  } finally {
    endPrefetch();
  }
}
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

  throw new DhtException(MessageFormat.format(
      DhtText.get().expectedObjectSizeDuringCopyAsIs, obj));
out.writeHeader(obj, inflatedSize);
out.write(dataBuf, ptr, copyLen);
origin: org.eclipse.jgit/org.eclipse.jgit.storage.dht

long position = out.length();
ChunkMeta meta = chunk.getMeta();
if (meta != null && meta.getBaseChunkCount() != 0) {
origin: com.madgag/org.eclipse.jgit.storage.dht

  throw new DhtException(MessageFormat.format(
      DhtText.get().expectedObjectSizeDuringCopyAsIs, obj));
out.writeHeader(obj, inflatedSize);
out.write(dataBuf, ptr, copyLen);
origin: com.madgag/org.eclipse.jgit.storage.dht

long position = out.length();
ChunkMeta meta = chunk.getMeta();
if (meta != null && meta.getBaseChunkCount() != 0) {
origin: com.madgag/org.eclipse.jgit.storage.dht

@SuppressWarnings("unchecked")
public void writeObjects(PackOutputStream out, List<ObjectToPack> objects)
    throws IOException {
  prefetcher = prefetch(0, readerOptions.getWriteObjectsPrefetchRatio());
  try {
    List itr = objects;
    new ObjectWriter(this, prefetcher).plan(itr);
    for (ObjectToPack otp : objects)
      out.writeObject(otp);
  } finally {
    endPrefetch();
  }
}
origin: com.madgag/org.eclipse.jgit.storage.dht

void copyEntireChunkAsIs(PackOutputStream out, DhtObjectToPack obj,
    boolean validate) throws IOException {
  if (validate && !isValid()) {
    if (obj != null)
      throw new CorruptObjectException(obj, MessageFormat.format(
          DhtText.get().corruptChunk, getChunkKey()));
    else
      throw new DhtException(MessageFormat.format(
          DhtText.get().corruptChunk, getChunkKey()));
  }
  // Do not copy the trailer onto the output stream.
  out.write(dataBuf, dataPtr, dataLen - TRAILER_SIZE);
}
org.eclipse.jgit.storage.packPackOutputStream

Most used methods

  • length
  • write
  • writeHeader
  • writeObject

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • scheduleAtFixedRate (Timer)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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