PackWriter class is responsible for generating pack files from specified set of objects from repository. This implementation produce pack files in format version 2.
Source of objects may be specified in two ways:
Typical usage consists of creating instance intended for some pack, configuring options, preparing the list of objects by calling {@link #preparePack(Iterator)} or{@link #preparePack(ProgressMonitor,Collection,Collection)}, and finally producing the stream with {@link #writePack(ProgressMonitor,ProgressMonitor,OutputStream)}.
Class provide set of configurable options and {@link ProgressMonitor}support, as operations may take a long time for big repositories. Deltas searching algorithm is NOT IMPLEMENTED yet - this implementation relies only on deltas and objects reuse.
This class is not thread safe, it is intended to be used in one thread, with one instance per created pack. Subsequent calls to writePack result in undefined behavior.
PackWriter class is responsible for generating pack files from specified set of objects from repository. This implementation produce pack files in format version 2.
Source of objects may be specified in two ways:
Class provide set of configurable options and {@link ProgressMonitor}support, as operations may take a long time for big repositories. Deltas searching algorithm is NOT IMPLEMENTED yet - this implementation relies only on deltas and objects reuse.
This class is not thread safe, it is intended to be used in one thread, with one instance per created pack. Subsequent calls to writePack result in undefined behavior.
|
|