ZipEntrySource.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. // ZipEntrySource.cs
  2. // ------------------------------------------------------------------
  3. //
  4. // Copyright (c) 2009 Dino Chiesa
  5. // All rights reserved.
  6. //
  7. // This code module is part of DotNetZip, a zipfile class library.
  8. //
  9. // ------------------------------------------------------------------
  10. //
  11. // This code is licensed under the Microsoft Public License.
  12. // See the file License.txt for the license details.
  13. // More info on: http://dotnetzip.codeplex.com
  14. //
  15. // ------------------------------------------------------------------
  16. //
  17. // last saved (in emacs):
  18. // Time-stamp: <2009-November-19 11:18:42>
  19. //
  20. // ------------------------------------------------------------------
  21. //
  22. namespace Ionic.Zip
  23. {
  24. /// <summary>
  25. /// An enum that specifies the source of the ZipEntry.
  26. /// </summary>
  27. public enum ZipEntrySource
  28. {
  29. /// <summary>
  30. /// Default value. Invalid on a bonafide ZipEntry.
  31. /// </summary>
  32. None = 0,
  33. /// <summary>
  34. /// The entry was instantiated by calling AddFile() or another method that
  35. /// added an entry from the filesystem.
  36. /// </summary>
  37. FileSystem,
  38. /// <summary>
  39. /// The entry was instantiated via <see cref="Ionic.Zip.ZipFile.AddEntry(string,string)"/> or
  40. /// <see cref="Ionic.Zip.ZipFile.AddEntry(string,System.IO.Stream)"/> .
  41. /// </summary>
  42. Stream,
  43. /// <summary>
  44. /// The ZipEntry was instantiated by reading a zipfile.
  45. /// </summary>
  46. ZipFile,
  47. /// <summary>
  48. /// The content for the ZipEntry will be or was provided by the WriteDelegate.
  49. /// </summary>
  50. WriteDelegate,
  51. /// <summary>
  52. /// The content for the ZipEntry will be obtained from the stream dispensed by the <c>OpenDelegate</c>.
  53. /// The entry was instantiated via <see cref="Ionic.Zip.ZipFile.AddEntry(string,OpenDelegate,CloseDelegate)"/>.
  54. /// </summary>
  55. JitStream,
  56. /// <summary>
  57. /// The content for the ZipEntry will be or was obtained from a <c>ZipOutputStream</c>.
  58. /// </summary>
  59. ZipOutputStream,
  60. }
  61. }