|
| 1 | +// Licensed to the .NET Foundation under one or more agreements. |
| 2 | +// The .NET Foundation licenses this file to you under the MIT license. |
| 3 | +// ------------------------------------------------------------------------------ |
| 4 | +// Changes to this file must follow the https://aka.ms/api-review process. |
| 5 | +// ------------------------------------------------------------------------------ |
| 6 | + |
| 7 | +namespace System.Formats.Tar |
| 8 | +{ |
| 9 | + public sealed partial class GnuTarEntry : System.Formats.Tar.PosixTarEntry |
| 10 | + { |
| 11 | + public GnuTarEntry(System.Formats.Tar.TarEntryType entryType, string entryName) { } |
| 12 | + public System.DateTimeOffset AccessTime { get { throw null; } set { } } |
| 13 | + public System.DateTimeOffset ChangeTime { get { throw null; } set { } } |
| 14 | + } |
| 15 | + public sealed partial class PaxTarEntry : System.Formats.Tar.PosixTarEntry |
| 16 | + { |
| 17 | + public PaxTarEntry(System.Formats.Tar.TarEntryType entryType, string entryName) { } |
| 18 | + public PaxTarEntry(System.Formats.Tar.TarEntryType entryType, string entryName, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string>> extendedAttributes) { } |
| 19 | + public System.Collections.Generic.IReadOnlyDictionary<string, string> ExtendedAttributes { get { throw null; } } |
| 20 | + } |
| 21 | + public abstract partial class PosixTarEntry : System.Formats.Tar.TarEntry |
| 22 | + { |
| 23 | + internal PosixTarEntry() { } |
| 24 | + public int DeviceMajor { get { throw null; } set { } } |
| 25 | + public int DeviceMinor { get { throw null; } set { } } |
| 26 | + public string GroupName { get { throw null; } set { } } |
| 27 | + public string UserName { get { throw null; } set { } } |
| 28 | + } |
| 29 | + public abstract partial class TarEntry |
| 30 | + { |
| 31 | + internal TarEntry() { } |
| 32 | + public int Checksum { get { throw null; } } |
| 33 | + public System.IO.Stream? DataStream { get { throw null; } set { } } |
| 34 | + public System.Formats.Tar.TarEntryType EntryType { get { throw null; } } |
| 35 | + public int Gid { get { throw null; } set { } } |
| 36 | + public long Length { get { throw null; } } |
| 37 | + public string LinkName { get { throw null; } set { } } |
| 38 | + public System.Formats.Tar.TarFileMode Mode { get { throw null; } set { } } |
| 39 | + public System.DateTimeOffset ModificationTime { get { throw null; } set { } } |
| 40 | + public string Name { get { throw null; } set { } } |
| 41 | + public int Uid { get { throw null; } set { } } |
| 42 | + public void ExtractToFile(string destinationFileName, bool overwrite) { } |
| 43 | + public override string ToString() { throw null; } |
| 44 | + } |
| 45 | + public enum TarEntryType : byte |
| 46 | + { |
| 47 | + V7RegularFile = (byte)0, |
| 48 | + RegularFile = (byte)48, |
| 49 | + HardLink = (byte)49, |
| 50 | + SymbolicLink = (byte)50, |
| 51 | + CharacterDevice = (byte)51, |
| 52 | + BlockDevice = (byte)52, |
| 53 | + Directory = (byte)53, |
| 54 | + Fifo = (byte)54, |
| 55 | + ContiguousFile = (byte)55, |
| 56 | + DirectoryList = (byte)68, |
| 57 | + LongLink = (byte)75, |
| 58 | + LongPath = (byte)76, |
| 59 | + MultiVolume = (byte)77, |
| 60 | + RenamedOrSymlinked = (byte)78, |
| 61 | + SparseFile = (byte)83, |
| 62 | + TapeVolume = (byte)86, |
| 63 | + GlobalExtendedAttributes = (byte)103, |
| 64 | + ExtendedAttributes = (byte)120, |
| 65 | + } |
| 66 | + public static partial class TarFile |
| 67 | + { |
| 68 | + public static void CreateFromDirectory(string sourceDirectoryName, System.IO.Stream destination, bool includeBaseDirectory) { } |
| 69 | + public static void CreateFromDirectory(string sourceDirectoryName, string destinationFileName, bool includeBaseDirectory) { } |
| 70 | + public static void ExtractToDirectory(System.IO.Stream source, string destinationDirectoryName, bool overwriteFiles) { } |
| 71 | + public static void ExtractToDirectory(string sourceFileName, string destinationDirectoryName, bool overwriteFiles) { } |
| 72 | + } |
| 73 | + [System.FlagsAttribute] |
| 74 | + public enum TarFileMode |
| 75 | + { |
| 76 | + None = 0, |
| 77 | + OtherExecute = 1, |
| 78 | + OtherWrite = 2, |
| 79 | + OtherRead = 4, |
| 80 | + GroupExecute = 8, |
| 81 | + GroupWrite = 16, |
| 82 | + GroupRead = 32, |
| 83 | + UserExecute = 64, |
| 84 | + UserWrite = 128, |
| 85 | + UserRead = 256, |
| 86 | + StickyBit = 512, |
| 87 | + GroupSpecial = 1024, |
| 88 | + UserSpecial = 2048, |
| 89 | + } |
| 90 | + public enum TarFormat |
| 91 | + { |
| 92 | + Unknown = 0, |
| 93 | + V7 = 1, |
| 94 | + Ustar = 2, |
| 95 | + Pax = 3, |
| 96 | + Gnu = 4, |
| 97 | + } |
| 98 | + public sealed partial class TarReader : System.IDisposable |
| 99 | + { |
| 100 | + public TarReader(System.IO.Stream archiveStream, bool leaveOpen = false) { } |
| 101 | + public System.Formats.Tar.TarFormat Format { get { throw null; } } |
| 102 | + public System.Collections.Generic.IReadOnlyDictionary<string, string>? GlobalExtendedAttributes { get { throw null; } } |
| 103 | + public void Dispose() { } |
| 104 | + public System.Formats.Tar.TarEntry? GetNextEntry(bool copyData = false) { throw null; } |
| 105 | + } |
| 106 | + public sealed partial class TarWriter : System.IDisposable |
| 107 | + { |
| 108 | + public TarWriter(System.IO.Stream archiveStream, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string, string>>? globalExtendedAttributes = null, bool leaveOpen = false) { } |
| 109 | + public TarWriter(System.IO.Stream archiveStream, System.Formats.Tar.TarFormat archiveFormat, bool leaveOpen = false) { } |
| 110 | + public System.Formats.Tar.TarFormat Format { get { throw null; } } |
| 111 | + public void Dispose() { } |
| 112 | + public void WriteEntry(System.Formats.Tar.TarEntry entry) { } |
| 113 | + public void WriteEntry(string fileName, string? entryName) { } |
| 114 | + } |
| 115 | + public sealed partial class UstarTarEntry : System.Formats.Tar.PosixTarEntry |
| 116 | + { |
| 117 | + public UstarTarEntry(System.Formats.Tar.TarEntryType entryType, string entryName) { } |
| 118 | + } |
| 119 | + public sealed partial class V7TarEntry : System.Formats.Tar.TarEntry |
| 120 | + { |
| 121 | + public V7TarEntry(System.Formats.Tar.TarEntryType entryType, string entryName) { } |
| 122 | + } |
| 123 | +} |
0 commit comments