PageRenderTime 62ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/src/System.IO.Packaging/ref/System.IO.Packaging.cs

https://gitlab.com/0072016/0072016-corefx-
C# | 185 lines | 177 code | 2 blank | 6 comment | 0 complexity | b4618847ca90dbde0802079bd46fb41c MD5 | raw file
  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. // See the LICENSE file in the project root for more information.
  4. // ------------------------------------------------------------------------------
  5. // Changes to this file must follow the http://aka.ms/api-review process.
  6. // ------------------------------------------------------------------------------
  7. namespace System.IO
  8. {
  9. public partial class FileFormatException : System.FormatException
  10. {
  11. public FileFormatException() { }
  12. public FileFormatException(string message) { }
  13. public FileFormatException(string message, System.Exception innerException) { }
  14. public FileFormatException(System.Uri sourceUri) { }
  15. public FileFormatException(System.Uri sourceUri, System.Exception innerException) { }
  16. public FileFormatException(System.Uri sourceUri, string message) { }
  17. public FileFormatException(System.Uri sourceUri, string message, System.Exception innerException) { }
  18. public System.Uri SourceUri { get { return default(System.Uri); } }
  19. }
  20. }
  21. namespace System.IO.Packaging
  22. {
  23. public enum CompressionOption
  24. {
  25. Fast = 2,
  26. Maximum = 1,
  27. Normal = 0,
  28. NotCompressed = -1,
  29. SuperFast = 3,
  30. }
  31. public enum EncryptionOption
  32. {
  33. None = 0,
  34. RightsManagement = 1,
  35. }
  36. public abstract partial class Package : System.IDisposable
  37. {
  38. protected Package(System.IO.FileAccess openFileAccess) { }
  39. public System.IO.FileAccess FileOpenAccess { get { return default(System.IO.FileAccess); } }
  40. public System.IO.Packaging.PackageProperties PackageProperties { get { return default(System.IO.Packaging.PackageProperties); } }
  41. public void Close() { }
  42. public System.IO.Packaging.PackagePart CreatePart(System.Uri partUri, string contentType) { return default(System.IO.Packaging.PackagePart); }
  43. public System.IO.Packaging.PackagePart CreatePart(System.Uri partUri, string contentType, System.IO.Packaging.CompressionOption compressionOption) { return default(System.IO.Packaging.PackagePart); }
  44. protected abstract System.IO.Packaging.PackagePart CreatePartCore(System.Uri partUri, string contentType, System.IO.Packaging.CompressionOption compressionOption);
  45. public System.IO.Packaging.PackageRelationship CreateRelationship(System.Uri targetUri, System.IO.Packaging.TargetMode targetMode, string relationshipType) { return default(System.IO.Packaging.PackageRelationship); }
  46. public System.IO.Packaging.PackageRelationship CreateRelationship(System.Uri targetUri, System.IO.Packaging.TargetMode targetMode, string relationshipType, string id) { return default(System.IO.Packaging.PackageRelationship); }
  47. public void DeletePart(System.Uri partUri) { }
  48. protected abstract void DeletePartCore(System.Uri partUri);
  49. public void DeleteRelationship(string id) { }
  50. protected virtual void Dispose(bool disposing) { }
  51. public void Flush() { }
  52. protected abstract void FlushCore();
  53. public System.IO.Packaging.PackagePart GetPart(System.Uri partUri) { return default(System.IO.Packaging.PackagePart); }
  54. protected abstract System.IO.Packaging.PackagePart GetPartCore(System.Uri partUri);
  55. public System.IO.Packaging.PackagePartCollection GetParts() { return default(System.IO.Packaging.PackagePartCollection); }
  56. protected abstract System.IO.Packaging.PackagePart[] GetPartsCore();
  57. public System.IO.Packaging.PackageRelationship GetRelationship(string id) { return default(System.IO.Packaging.PackageRelationship); }
  58. public System.IO.Packaging.PackageRelationshipCollection GetRelationships() { return default(System.IO.Packaging.PackageRelationshipCollection); }
  59. public System.IO.Packaging.PackageRelationshipCollection GetRelationshipsByType(string relationshipType) { return default(System.IO.Packaging.PackageRelationshipCollection); }
  60. public static System.IO.Packaging.Package Open(System.IO.Stream stream) { return default(System.IO.Packaging.Package); }
  61. public static System.IO.Packaging.Package Open(System.IO.Stream stream, System.IO.FileMode packageMode) { return default(System.IO.Packaging.Package); }
  62. public static System.IO.Packaging.Package Open(System.IO.Stream stream, System.IO.FileMode packageMode, System.IO.FileAccess packageAccess) { return default(System.IO.Packaging.Package); }
  63. public static System.IO.Packaging.Package Open(string path) { return default(System.IO.Packaging.Package); }
  64. public static System.IO.Packaging.Package Open(string path, System.IO.FileMode packageMode) { return default(System.IO.Packaging.Package); }
  65. public static System.IO.Packaging.Package Open(string path, System.IO.FileMode packageMode, System.IO.FileAccess packageAccess) { return default(System.IO.Packaging.Package); }
  66. public static System.IO.Packaging.Package Open(string path, System.IO.FileMode packageMode, System.IO.FileAccess packageAccess, System.IO.FileShare packageShare) { return default(System.IO.Packaging.Package); }
  67. public virtual bool PartExists(System.Uri partUri) { return default(bool); }
  68. public bool RelationshipExists(string id) { return default(bool); }
  69. void System.IDisposable.Dispose() { }
  70. }
  71. public abstract partial class PackagePart
  72. {
  73. protected PackagePart(System.IO.Packaging.Package package, System.Uri partUri) { }
  74. protected PackagePart(System.IO.Packaging.Package package, System.Uri partUri, string contentType) { }
  75. protected PackagePart(System.IO.Packaging.Package package, System.Uri partUri, string contentType, System.IO.Packaging.CompressionOption compressionOption) { }
  76. public System.IO.Packaging.CompressionOption CompressionOption { get { return default(System.IO.Packaging.CompressionOption); } }
  77. public string ContentType { get { return default(string); } }
  78. public System.IO.Packaging.Package Package { get { return default(System.IO.Packaging.Package); } }
  79. public System.Uri Uri { get { return default(System.Uri); } }
  80. public System.IO.Packaging.PackageRelationship CreateRelationship(System.Uri targetUri, System.IO.Packaging.TargetMode targetMode, string relationshipType) { return default(System.IO.Packaging.PackageRelationship); }
  81. public System.IO.Packaging.PackageRelationship CreateRelationship(System.Uri targetUri, System.IO.Packaging.TargetMode targetMode, string relationshipType, string id) { return default(System.IO.Packaging.PackageRelationship); }
  82. public void DeleteRelationship(string id) { }
  83. protected virtual string GetContentTypeCore() { return default(string); }
  84. public System.IO.Packaging.PackageRelationship GetRelationship(string id) { return default(System.IO.Packaging.PackageRelationship); }
  85. public System.IO.Packaging.PackageRelationshipCollection GetRelationships() { return default(System.IO.Packaging.PackageRelationshipCollection); }
  86. public System.IO.Packaging.PackageRelationshipCollection GetRelationshipsByType(string relationshipType) { return default(System.IO.Packaging.PackageRelationshipCollection); }
  87. public System.IO.Stream GetStream() { return default(System.IO.Stream); }
  88. public System.IO.Stream GetStream(System.IO.FileMode mode) { return default(System.IO.Stream); }
  89. public System.IO.Stream GetStream(System.IO.FileMode mode, System.IO.FileAccess access) { return default(System.IO.Stream); }
  90. protected abstract System.IO.Stream GetStreamCore(System.IO.FileMode mode, System.IO.FileAccess access);
  91. public bool RelationshipExists(string id) { return default(bool); }
  92. }
  93. public partial class PackagePartCollection : System.Collections.Generic.IEnumerable<System.IO.Packaging.PackagePart>, System.Collections.IEnumerable
  94. {
  95. internal PackagePartCollection() { }
  96. public System.Collections.Generic.IEnumerator<System.IO.Packaging.PackagePart> GetEnumerator() { return default(System.Collections.Generic.IEnumerator<System.IO.Packaging.PackagePart>); }
  97. System.Collections.Generic.IEnumerator<System.IO.Packaging.PackagePart> System.Collections.Generic.IEnumerable<System.IO.Packaging.PackagePart>.GetEnumerator() { return default(System.Collections.Generic.IEnumerator<System.IO.Packaging.PackagePart>); }
  98. System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return default(System.Collections.IEnumerator); }
  99. }
  100. public abstract partial class PackageProperties : System.IDisposable
  101. {
  102. protected PackageProperties() { }
  103. public abstract string Category { get; set; }
  104. public abstract string ContentStatus { get; set; }
  105. public abstract string ContentType { get; set; }
  106. public abstract System.Nullable<System.DateTime> Created { get; set; }
  107. public abstract string Creator { get; set; }
  108. public abstract string Description { get; set; }
  109. public abstract string Identifier { get; set; }
  110. public abstract string Keywords { get; set; }
  111. public abstract string Language { get; set; }
  112. public abstract string LastModifiedBy { get; set; }
  113. public abstract System.Nullable<System.DateTime> LastPrinted { get; set; }
  114. public abstract System.Nullable<System.DateTime> Modified { get; set; }
  115. public abstract string Revision { get; set; }
  116. public abstract string Subject { get; set; }
  117. public abstract string Title { get; set; }
  118. public abstract string Version { get; set; }
  119. public void Dispose() { }
  120. protected virtual void Dispose(bool disposing) { }
  121. }
  122. public partial class PackageRelationship
  123. {
  124. internal PackageRelationship() { }
  125. public string Id { get { return default(string); } }
  126. public System.IO.Packaging.Package Package { get { return default(System.IO.Packaging.Package); } }
  127. public string RelationshipType { get { return default(string); } }
  128. public System.Uri SourceUri { get { return default(System.Uri); } }
  129. public System.IO.Packaging.TargetMode TargetMode { get { return default(System.IO.Packaging.TargetMode); } }
  130. public System.Uri TargetUri { get { return default(System.Uri); } }
  131. }
  132. public partial class PackageRelationshipCollection : System.Collections.Generic.IEnumerable<System.IO.Packaging.PackageRelationship>, System.Collections.IEnumerable
  133. {
  134. internal PackageRelationshipCollection() { }
  135. public System.Collections.Generic.IEnumerator<System.IO.Packaging.PackageRelationship> GetEnumerator() { return default(System.Collections.Generic.IEnumerator<System.IO.Packaging.PackageRelationship>); }
  136. System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { return default(System.Collections.IEnumerator); }
  137. }
  138. public sealed partial class PackageRelationshipSelector
  139. {
  140. public PackageRelationshipSelector(System.Uri sourceUri, System.IO.Packaging.PackageRelationshipSelectorType selectorType, string selectionCriteria) { }
  141. public string SelectionCriteria { get { return default(string); } }
  142. public System.IO.Packaging.PackageRelationshipSelectorType SelectorType { get { return default(System.IO.Packaging.PackageRelationshipSelectorType); } }
  143. public System.Uri SourceUri { get { return default(System.Uri); } }
  144. public System.Collections.Generic.List<System.IO.Packaging.PackageRelationship> Select(System.IO.Packaging.Package package) { return default(System.Collections.Generic.List<System.IO.Packaging.PackageRelationship>); }
  145. }
  146. public enum PackageRelationshipSelectorType
  147. {
  148. Id = 0,
  149. Type = 1,
  150. }
  151. public static partial class PackUriHelper
  152. {
  153. public static readonly string UriSchemePack;
  154. public static int ComparePartUri(System.Uri firstPartUri, System.Uri secondPartUri) { return default(int); }
  155. public static System.Uri CreatePartUri(System.Uri partUri) { return default(System.Uri); }
  156. public static System.Uri GetNormalizedPartUri(System.Uri partUri) { return default(System.Uri); }
  157. public static System.Uri GetRelationshipPartUri(System.Uri partUri) { return default(System.Uri); }
  158. public static System.Uri GetRelativeUri(System.Uri sourcePartUri, System.Uri targetPartUri) { return default(System.Uri); }
  159. public static System.Uri GetSourcePartUriFromRelationshipPartUri(System.Uri relationshipPartUri) { return default(System.Uri); }
  160. public static bool IsRelationshipPartUri(System.Uri partUri) { return default(bool); }
  161. public static System.Uri ResolvePartUri(System.Uri sourcePartUri, System.Uri targetUri) { return default(System.Uri); }
  162. }
  163. public enum TargetMode
  164. {
  165. External = 1,
  166. Internal = 0,
  167. }
  168. public sealed partial class ZipPackage : System.IO.Packaging.Package
  169. {
  170. internal ZipPackage() : base (default(System.IO.FileAccess)) { }
  171. protected override System.IO.Packaging.PackagePart CreatePartCore(System.Uri partUri, string contentType, System.IO.Packaging.CompressionOption compressionOption) { return default(System.IO.Packaging.PackagePart); }
  172. protected override void DeletePartCore(System.Uri partUri) { }
  173. protected override void Dispose(bool disposing) { }
  174. protected override void FlushCore() { }
  175. protected override System.IO.Packaging.PackagePart GetPartCore(System.Uri partUri) { return default(System.IO.Packaging.PackagePart); }
  176. protected override System.IO.Packaging.PackagePart[] GetPartsCore() { return default(System.IO.Packaging.PackagePart[]); }
  177. }
  178. public sealed partial class ZipPackagePart : System.IO.Packaging.PackagePart
  179. {
  180. internal ZipPackagePart() : base (default(System.IO.Packaging.Package), default(System.Uri)) { }
  181. protected override System.IO.Stream GetStreamCore(System.IO.FileMode streamFileMode, System.IO.FileAccess streamFileAccess) { return default(System.IO.Stream); }
  182. }
  183. }