Welcome to mirror list, hosted at ThFree Co, Russian Federation.

7.0-preview6_System.Formats.Tar.md « Microsoft.NETCore.App « preview6 « api-diff « preview « 7.0 « release-notes - github.com/dotnet/core.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6e1e608ddb18fc0c42fd4aa47c560b069681c802 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# System.Formats.Tar

``` diff
 namespace System.Formats.Tar {
     public sealed class GnuTarEntry : PosixTarEntry {
+        public GnuTarEntry(TarEntry other);
     }
+    public sealed class PaxGlobalExtendedAttributesTarEntry : PosixTarEntry {
+        public PaxGlobalExtendedAttributesTarEntry(IEnumerable<KeyValuePair<string, string>> globalExtendedAttributes);
+        public IReadOnlyDictionary<string, string> GlobalExtendedAttributes { get; }
+    }
     public sealed class PaxTarEntry : PosixTarEntry {
+        public PaxTarEntry(TarEntry other);
     }
     public abstract class TarEntry {
+        public TarEntryFormat Format { get; }
     }
+    public enum TarEntryFormat {
+        Gnu = 4,
+        Pax = 3,
+        Unknown = 0,
+        Ustar = 2,
+        V7 = 1,
+    }
-    public enum TarFormat {
-        Gnu = 4,
-        Pax = 3,
-        Unknown = 0,
-        Ustar = 2,
-        V7 = 1,
-    }
     public sealed class TarReader : IDisposable {
-        public TarFormat Format { get; }
-        public IReadOnlyDictionary<string, string>? GlobalExtendedAttributes { get; }
     }
     public sealed class TarWriter : IDisposable {
+        public TarWriter(Stream archiveStream);
+        public TarWriter(Stream archiveStream, bool leaveOpen = false);
-        public TarWriter(Stream archiveStream, IEnumerable<KeyValuePair<string, string>>? globalExtendedAttributes = null, bool leaveOpen = false);
+        public TarWriter(Stream archiveStream, TarEntryFormat format = TarEntryFormat.Pax, bool leaveOpen = false);
-        public TarWriter(Stream archiveStream, TarFormat archiveFormat, bool leaveOpen = false);
-        public TarFormat Format { get; }
+        public TarEntryFormat Format { get; }
     }
     public sealed class UstarTarEntry : PosixTarEntry {
+        public UstarTarEntry(TarEntry other);
     }
     public sealed class V7TarEntry : TarEntry {
+        public V7TarEntry(TarEntry other);
     }
 }
```