org.eclipse.jgit.internal.storage.pack.PackWriter .
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private final byte[] | |
| private boolean | |
| private final PackWriter |
| Access | Constructor and Description |
|---|---|
| public | PackOutputStream(final ProgressMonitor
monitor to update on object output progress. writeMonitor, final OutputStream target stream to receive all object contents. out, final PackWriter packer that is going to perform the output. pw)Initialize a pack output stream. |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public final byte[] | Returns: a temporary buffer writers can use to copy data with.Get a temporary buffer writers can use to copy data with. |
| private static final int | |
| private static final int | |
| private static final int | |
| pack-priv final void | |
| public final void | writeHeader(ObjectToPack
the object to pack. Header information is obtained. otp, long number of bytes of the inflated content. For an object that is
in whole object format, this is the same as the object size.
For an object that is in a delta format, this is the size of
the inflated delta instruction stream. rawLength)Commits the object header onto the stream. |
| public final void |
| copyBuffer | back to summary |
|---|---|
| private final byte[] copyBuffer | |
| headerBuffer | back to summary |
|---|---|
| private final byte[] headerBuffer | |
| ofsDelta | back to summary |
|---|---|
| private boolean ofsDelta | |
| packWriter | back to summary |
|---|---|
| private final PackWriter packWriter | |
| PackOutputStream | back to summary |
|---|---|
| public PackOutputStream(final ProgressMonitor writeMonitor, final OutputStream out, final PackWriter pw) Initialize a pack output stream.
This constructor is exposed to support debugging the JGit library only.
Application or storage level code should not create a PackOutputStream,
instead use
| |
| endObject | back to summary |
|---|---|
| pack-priv void endObject() | |
| getCopyBuffer | back to summary |
|---|---|
| public final byte[] getCopyBuffer() Get a temporary buffer writers can use to copy data with.
| |
| objectHeader | back to summary |
|---|---|
| private static final int objectHeader(long len, int type, byte[] buf) | |
| ofsDelta | back to summary |
|---|---|
| private static final int ofsDelta(long diff, byte[] buf, int p) | |
| ofsDeltaVarIntLength | back to summary |
|---|---|
| private static final int ofsDeltaVarIntLength(long v) | |
| writeFileHeader | back to summary |
|---|---|
| pack-priv final void writeFileHeader(int version, long objectCount) throws IOException | |
| writeHeader | back to summary |
|---|---|
| public final void writeHeader(ObjectToPack otp, long rawLength) throws IOException Commits the object header onto the stream. Once the header has been written, the object representation must be fully output, or packing must abort abnormally.
| |
| writeObject | back to summary |
|---|---|
| public final void writeObject(ObjectToPack otp) throws IOException Write one object. If the object was already written, this method does nothing and returns quickly. This case occurs whenever an object was written out of order in order to ensure the delta base occurred before the object that needs it.
| |