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 |
|
---|
23 | namespace OfficeOpenXml.Packaging.Ionic.Zip
|
---|
24 | {
|
---|
25 | /// <summary>
|
---|
26 | /// An enum that specifies the source of the ZipEntry.
|
---|
27 | /// </summary>
|
---|
28 | internal enum ZipEntrySource
|
---|
29 | {
|
---|
30 | /// <summary>
|
---|
31 | /// Default value. Invalid on a bonafide ZipEntry.
|
---|
32 | /// </summary>
|
---|
33 | None = 0,
|
---|
34 |
|
---|
35 | /// <summary>
|
---|
36 | /// The entry was instantiated by calling AddFile() or another method that
|
---|
37 | /// added an entry from the filesystem.
|
---|
38 | /// </summary>
|
---|
39 | FileSystem,
|
---|
40 |
|
---|
41 | /// <summary>
|
---|
42 | /// The entry was instantiated via <see cref="Ionic.Zip.ZipFile.AddEntry(string,string)"/> or
|
---|
43 | /// <see cref="Ionic.Zip.ZipFile.AddEntry(string,System.IO.Stream)"/> .
|
---|
44 | /// </summary>
|
---|
45 | Stream,
|
---|
46 |
|
---|
47 | /// <summary>
|
---|
48 | /// The ZipEntry was instantiated by reading a zipfile.
|
---|
49 | /// </summary>
|
---|
50 | ZipFile,
|
---|
51 |
|
---|
52 | /// <summary>
|
---|
53 | /// The content for the ZipEntry will be or was provided by the WriteDelegate.
|
---|
54 | /// </summary>
|
---|
55 | WriteDelegate,
|
---|
56 |
|
---|
57 | /// <summary>
|
---|
58 | /// The content for the ZipEntry will be obtained from the stream dispensed by the <c>OpenDelegate</c>.
|
---|
59 | /// The entry was instantiated via <see cref="Ionic.Zip.ZipFile.AddEntry(string,OpenDelegate,CloseDelegate)"/>.
|
---|
60 | /// </summary>
|
---|
61 | JitStream,
|
---|
62 |
|
---|
63 | /// <summary>
|
---|
64 | /// The content for the ZipEntry will be or was obtained from a <c>ZipOutputStream</c>.
|
---|
65 | /// </summary>
|
---|
66 | ZipOutputStream,
|
---|
67 | }
|
---|
68 |
|
---|
69 | } |
---|