/// <summary> /// Close the archive. This simply calls the underlying /// tar stream's close() method. /// </summary> public void CloseArchive() { if (tarIn != null) { tarIn.Close(); } else if (tarOut != null) { tarOut.Flush(); tarOut.Close(); } }
protected virtual void Dispose(bool disposing) { if (!isDisposed) { isDisposed = true; if (disposing) { if (tarOut != null) { tarOut.Flush(); tarOut.Dispose(); } if (tarIn != null) { tarIn.Dispose(); } } } }