diff options
Diffstat (limited to 'release-notes/7.0/preview/api-diff/preview6/Microsoft.NETCore.App/7.0-preview6_System.Formats.Tar.md')
-rw-r--r-- | release-notes/7.0/preview/api-diff/preview6/Microsoft.NETCore.App/7.0-preview6_System.Formats.Tar.md | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/release-notes/7.0/preview/api-diff/preview6/Microsoft.NETCore.App/7.0-preview6_System.Formats.Tar.md b/release-notes/7.0/preview/api-diff/preview6/Microsoft.NETCore.App/7.0-preview6_System.Formats.Tar.md new file mode 100644 index 00000000..6e1e608d --- /dev/null +++ b/release-notes/7.0/preview/api-diff/preview6/Microsoft.NETCore.App/7.0-preview6_System.Formats.Tar.md @@ -0,0 +1,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); + } + } +``` + |