org.eclipse.jgit.internal.storage.file.LockFile which is committed on
close(). The stream checks if the hash of the stream content matches the id.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private AnyLongObjectId | |
| private LockFile | |
| private DigestOutputStream |
| Access | Constructor and Description |
|---|---|
| public | AtomicObjectOutputStream(Path
a path, AnyLongObjectId java. object.a id)org. object.Constructor for AtomicObjectOutputStream. |
| public | AtomicObjectOutputStream(Path
a path)java. object.Constructor for AtomicObjectOutputStream. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | close()
Overrides java. Implements java. Closes this output stream and releases any system resources associated with this stream. |
| public AnyLongObjectId | Returns: content hash of the object which was streamed through this stream. May returnnull if called before closing this
stream.Get the |
| private void | |
| public void | write(int
the b)byte.Implements abstract java. Writes the specified byte to this output stream. |
| public void | write(byte[]
the data. b)Overrides java. Writes |
| public void | write(byte[]
the data. b, int the start offset in the data. off, int the number of bytes to write. len)Overrides java. Writes |
| aborted | back to summary |
|---|---|
| private boolean aborted | |
| id | back to summary |
|---|---|
| private AnyLongObjectId id | |
| locked | back to summary |
|---|---|
| private LockFile locked | |
| out | back to summary |
|---|---|
| private DigestOutputStream out | |
| AtomicObjectOutputStream | back to summary |
|---|---|
| public AtomicObjectOutputStream(Path path, AnyLongObjectId id) throws IOException Constructor for AtomicObjectOutputStream.
| |
| AtomicObjectOutputStream | back to summary |
|---|---|
| public AtomicObjectOutputStream(Path path) throws IOException Constructor for AtomicObjectOutputStream.
| |
| abort | back to summary |
|---|---|
| public void abort() Aborts the stream. Temporary file will be deleted | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this output stream and releases any system resources
associated with this stream. The general contract of
| |
| getId | back to summary |
|---|---|
| public AnyLongObjectId getId() Get the
| |
| verifyHash | back to summary |
|---|---|
| private void verifyHash() | |
| write | back to summary |
|---|---|
| public void write(int b) throws IOException Implements abstract java. Doc from java. Writes the specified byte to this output stream. The general
contract for
| |
| write | back to summary |
|---|---|
| public void write(byte[] b) throws IOException Overrides java. Doc from java. Writes
| |
| write | back to summary |
|---|---|
| public void write(byte[] b, int off, int len) throws IOException Overrides java. Doc from java. Writes
If
If
| |