ZipContainer
-Undocumented
+public class ZipContainer
+
+ Provides function to open ZIP archives (containers).
From 69c1d9ce6c8a3413f3f19688351cce4f7e009c7c Mon Sep 17 00:00:00 2001
From: Timofey Solomko
@@ -196,7 +196,7 @@
A class with unarchive function for gzip archives. Provides unarchive function for GZip archives. Swift A class with unarchive function for Zlib archives. Provides unarchive function for Zlib archives. Provides function to decompress data, which were compressed with DEFLATE Provides function to decompress data, which were compressed with DEFLATE. Provides function to decompress data, which were compressed using BZip2 Provides function to decompress data, which were compressed using BZip2. A class with unarchive function for xz archives. Provides unarchive function for XZ archives.Declaration
+
+
+ public class ZipContainer
@@ -146,7 +146,7 @@ -
Provides function to decompress data, which were compressed using BZip2
+Provides function to decompress data, which were compressed using BZip2.
diff --git a/docs/Classes/Deflate.html b/docs/Classes/Deflate.html index 96e5067f..8b450141 100644 --- a/docs/Classes/Deflate.html +++ b/docs/Classes/Deflate.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)@@ -146,7 +146,7 @@ -
Provides function to decompress data, which were compressed with DEFLATE
+Provides function to decompress data, which were compressed with DEFLATE.
diff --git a/docs/Classes/GzipArchive.html b/docs/Classes/GzipArchive.html index c3dade45..a18c789b 100644 --- a/docs/Classes/GzipArchive.html +++ b/docs/Classes/GzipArchive.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)@@ -146,7 +146,7 @@ -
A class with unarchive function for gzip archives.
+Provides unarchive function for GZip archives.
diff --git a/docs/Classes/LZMA.html b/docs/Classes/LZMA.html index 94a0806d..d5f713dc 100644 --- a/docs/Classes/LZMA.html +++ b/docs/Classes/LZMA.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)diff --git a/docs/Classes/LZMA2.html b/docs/Classes/LZMA2.html index 0684dde8..fab3990c 100644 --- a/docs/Classes/LZMA2.html +++ b/docs/Classes/LZMA2.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/Classes/XZArchive.html b/docs/Classes/XZArchive.html index 5b803f53..4ab78488 100644 --- a/docs/Classes/XZArchive.html +++ b/docs/Classes/XZArchive.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
@@ -146,7 +146,7 @@ -
A class with unarchive function for xz archives.
+Provides unarchive function for XZ archives.
diff --git a/docs/Classes/ZipContainer.html b/docs/Classes/ZipContainer.html index e3326fc9..e7d22699 100644 --- a/docs/Classes/ZipContainer.html +++ b/docs/Classes/ZipContainer.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
@@ -140,7 +140,13 @@
Undocumented Provides function to open ZIP archives (containers).ZipContainer
-
+
+ public class ZipContainer
Undocumented
+Processes ZIP archive (container) and returns an array of tuples (String, Data).
+First member of a tuple is entry’s name, second member is entry’s data.
Important
+The order of entries is defined by ZIP archive and, particularly, creator of given ZIP container. +It is likely that directories will be encountered earlier than files stored in those directories, +but one SHOULD NOT assume that this is the case.
+ +Note
+Currently, there is no universal (platform and file system independent) method to determine if entry is a directory. +One can check this by looking at the size of entry’s data (it should be 0 for directory) AND +the last character of entry’s name (it should be ‘/’). If all of these is true then entry is likely to be a directory.
+ +Note
+Only ZIP containers complying to ISO/IEC 21320-1 standard are supported.
+ +Parameter
+Parameter containerData: Data of ZIP container.
+ +Throws
+ZipError or DeflateError depending on the type of inconsistency in data.
+It may indicate that either the container is damaged or it might not be ZIP container or compressed with Deflate at all.
Returns
+Array of pairs (tuples) where first member is entryName and second member is entryData.
Swift
+public static func open(containerData data: Data) throws -> [(entryName: String, entryData: Data)]
+
+
+
+ containerData
+
+ |
+
+
+
+ Data of ZIP container. + + |
+
Array of pairs (tuples) where first member is entryName and second member is entryData.
@@ -146,7 +146,7 @@ -
A class with unarchive function for Zlib archives.
+Provides unarchive function for Zlib archives.
diff --git a/docs/Enums.html b/docs/Enums.html index 661c1fe2..ca7e2b87 100644 --- a/docs/Enums.html +++ b/docs/Enums.html @@ -19,7 +19,7 @@ SWCompression Docs - (85% documented) + (100% documented)@@ -252,12 +252,35 @@ Associated value contains already decompressed data.
Undocumented
+Error happened during processing ZIP archive (container). +It may indicate that either the data is damaged or it might not be ZIP archive (container) at all.
+ +NotFoundCentralDirectoryEnd: end of Central Directoty record wasn’t found.WrongSignature: unsupported signature of one of ZIP container’s structures.WrongSize: incorrect compressed or uncompressed size of a ZIP container’s entry’s data.WrongVersion: unsupported number of version needed to extract ZIP container
+(unsupported features are required to open this file).MultiVolumesNotSupported: unsupported feature: multi-volumed or spanned container.EncryptionNotSupported: unsupported feature: encryption.PatchingNotSupported: unsupported feature: patched data.CompressionNotSupported: unsupported feature: specified compression method.WrongLocalHeader: local header of an entry wasn’t consistent with Central Directory record.WrongCRC32: computed checksum of entry’s data wasn’t the same as the one stored in container.Swift
+public enum ZipError: Error
+
+ Error happened during unarchiving xz archive. -It may indicate that either the data is damaged or it might not be xz archive at all.
+Error happened during unarchiving XZ archive. +It may indicate that either the data is damaged or it might not be XZ archive at all.
WrongMagic: ‘magic’ bytes in archive’s header or footer weren’t equal to predefined value.diff --git a/docs/Enums/DeflateError.html b/docs/Enums/DeflateError.html index 6bb6cb8d..44011363 100644 --- a/docs/Enums/DeflateError.html +++ b/docs/Enums/DeflateError.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/Enums/GzipError.html b/docs/Enums/GzipError.html index 2d1ee4f9..feed5fe0 100644 --- a/docs/Enums/GzipError.html +++ b/docs/Enums/GzipError.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/Enums/LZMA2Error.html b/docs/Enums/LZMA2Error.html index d7281e4f..c7c14487 100644 --- a/docs/Enums/LZMA2Error.html +++ b/docs/Enums/LZMA2Error.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/Enums/LZMAError.html b/docs/Enums/LZMAError.html index 5a6ea3d2..4ac8b262 100644 --- a/docs/Enums/LZMAError.html +++ b/docs/Enums/LZMAError.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/Enums/XZError.html b/docs/Enums/XZError.html index a488b4f5..5cae8403 100644 --- a/docs/Enums/XZError.html +++ b/docs/Enums/XZError.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
@@ -146,8 +146,8 @@
Error happened during unarchiving xz archive. -It may indicate that either the data is damaged or it might not be xz archive at all.
+Error happened during unarchiving XZ archive. +It may indicate that either the data is damaged or it might not be XZ archive at all.
WrongMagic: ‘magic’ bytes in archive’s header or footer weren’t equal to predefined value.
@@ -140,7 +140,28 @@
Undocumented Error happened during processing ZIP archive (container).
+It may indicate that either the data is damaged or it might not be ZIP archive (container) at all. Undocumented End of Central Directoty record was not found. SwiftZipError
-
+
+ public enum ZipError: Error
+
NotFoundCentralDirectoryEnd: end of Central Directoty record wasn’t found.WrongSignature: unsupported signature of one of ZIP container’s structures.WrongSize: incorrect compressed or uncompressed size of a ZIP container’s entry’s data.WrongVersion: unsupported number of version needed to extract ZIP container
+(unsupported features are required to open this file).MultiVolumesNotSupported: unsupported feature: multi-volumed or spanned container.EncryptionNotSupported: unsupported feature: encryption.PatchingNotSupported: unsupported feature: patched data.CompressionNotSupported: unsupported feature: specified compression method.WrongLocalHeader: local header of an entry wasn’t consistent with Central Directory record.WrongCRC32: computed checksum of entry’s data wasn’t the same as the one stored in container.Declaration
+
+
+ case NotFoundCentralDirectoryEnd
-
-
- WrongCentralDirectoryDisk
+
+
+ WrongSignature
Undocumented
+Wrong signature of one of ZIP container’s structures.
Swift
+case WrongSignature
+
+
-
-
- WrongZip64LocatorSignature
+
+
+ WrongSize
Undocumented
+Wrong either compressed or uncompressed size of a ZIP container’s entry.
-
-
- WrongZip64EndCentralDirectorySignature
-
- Undocumented
+Wrong number of version needed to extract ZIP container.
Swift
+case WrongVersion
+
+ Undocumented
+Archive either spanned or consists of several volumes. This feature is not supported.
Swift
+case MultiVolumesNotSupported
+
+ Undocumented
+Entry or record is encrypted. This feature is not supported.
Swift
+case EncryptionNotSupported
+
+ Undocumented
+Entry contains patched data. This feature is not supported.
Swift
+case PatchingNotSupported
+
+ Undocumented
+Wrong compression method of an entry.
-
-
- WrongLocalHeaderSignature
-
- Undocumented
+Swift
+case CompressionNotSupported
+ Undocumented
+Wrong local header of an entry.
Swift
+case WrongLocalHeader
+
+ Undocumented
+Wrong computed CRC32 of an entry.
-
-
- WrongCompressedSize
-
-
-
-
- WrongUncompressedSize
-
- Undocumented
- -diff --git a/docs/Protocols.html b/docs/Protocols.html index 8d2d61ba..32030438 100644 --- a/docs/Protocols.html +++ b/docs/Protocols.html @@ -19,7 +19,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/Protocols/Archive.html b/docs/Protocols/Archive.html index ee3b3afc..f6fdb20f 100644 --- a/docs/Protocols/Archive.html +++ b/docs/Protocols/Archive.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/Protocols/DecompressionAlgorithm.html b/docs/Protocols/DecompressionAlgorithm.html index 1459ae84..201fd36c 100644 --- a/docs/Protocols/DecompressionAlgorithm.html +++ b/docs/Protocols/DecompressionAlgorithm.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/Structs.html b/docs/Structs.html index 3f616f9d..45821d12 100644 --- a/docs/Structs.html +++ b/docs/Structs.html @@ -19,7 +19,7 @@ SWCompression Docs - (85% documented) + (100% documented)
@@ -161,7 +161,7 @@
A strucutre which provides information about gzip archive. A structure which provides information about gzip archive. A strucutre which provides information about zlib archive. A structure which provides information about zlib archive.
@@ -146,7 +146,7 @@
A strucutre which provides information about gzip archive.
+A structure which provides information about gzip archive.
diff --git a/docs/Structs/GzipHeader/FileSystemType.html b/docs/Structs/GzipHeader/FileSystemType.html index c43e95a9..96eef7e5 100644 --- a/docs/Structs/GzipHeader/FileSystemType.html +++ b/docs/Structs/GzipHeader/FileSystemType.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/Structs/ZlibHeader.html b/docs/Structs/ZlibHeader.html index c65fb9c7..4dc1ac86 100644 --- a/docs/Structs/ZlibHeader.html +++ b/docs/Structs/ZlibHeader.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
@@ -146,7 +146,7 @@ -
A strucutre which provides information about zlib archive.
+A structure which provides information about zlib archive.
diff --git a/docs/Structs/ZlibHeader/CompressionLevel.html b/docs/Structs/ZlibHeader/CompressionLevel.html index 4d688d75..ec102b12 100644 --- a/docs/Structs/ZlibHeader/CompressionLevel.html +++ b/docs/Structs/ZlibHeader/CompressionLevel.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)diff --git a/docs/Structs/ZlibHeader/CompressionMethod.html b/docs/Structs/ZlibHeader/CompressionMethod.html index 5b34178e..ed01b887 100644 --- a/docs/Structs/ZlibHeader/CompressionMethod.html +++ b/docs/Structs/ZlibHeader/CompressionMethod.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes.html index 8e4693a1..0daf3759 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes.html @@ -19,7 +19,7 @@ SWCompression Docs - (85% documented) + (100% documented)
@@ -196,7 +196,7 @@
A class with unarchive function for gzip archives. Provides unarchive function for GZip archives. Swift A class with unarchive function for Zlib archives. Provides unarchive function for Zlib archives. Provides function to decompress data, which were compressed with DEFLATE Provides function to decompress data, which were compressed with DEFLATE. Provides function to decompress data, which were compressed using BZip2 Provides function to decompress data, which were compressed using BZip2. A class with unarchive function for xz archives. Provides unarchive function for XZ archives.Declaration
+
+
+ public class ZipContainer
@@ -146,7 +146,7 @@ -
Provides function to decompress data, which were compressed using BZip2
+Provides function to decompress data, which were compressed using BZip2.
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/Deflate.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/Deflate.html index 96e5067f..8b450141 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/Deflate.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/Deflate.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)@@ -146,7 +146,7 @@ -
Provides function to decompress data, which were compressed with DEFLATE
+Provides function to decompress data, which were compressed with DEFLATE.
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/GzipArchive.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/GzipArchive.html index c3dade45..a18c789b 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/GzipArchive.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/GzipArchive.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)@@ -146,7 +146,7 @@ -
A class with unarchive function for gzip archives.
+Provides unarchive function for GZip archives.
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/LZMA.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/LZMA.html index 94a0806d..d5f713dc 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/LZMA.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/LZMA.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/LZMA2.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/LZMA2.html index 0684dde8..fab3990c 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/LZMA2.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/LZMA2.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/XZArchive.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/XZArchive.html index 5b803f53..4ab78488 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/XZArchive.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/XZArchive.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
@@ -146,7 +146,7 @@ -
A class with unarchive function for xz archives.
+Provides unarchive function for XZ archives.
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/ZipContainer.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/ZipContainer.html index e3326fc9..e7d22699 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/ZipContainer.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Classes/ZipContainer.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
@@ -140,7 +140,13 @@
Undocumented Provides function to open ZIP archives (containers).ZipContainer
-
+
+ public class ZipContainer
Undocumented
+Processes ZIP archive (container) and returns an array of tuples (String, Data).
+First member of a tuple is entry’s name, second member is entry’s data.
Important
+The order of entries is defined by ZIP archive and, particularly, creator of given ZIP container. +It is likely that directories will be encountered earlier than files stored in those directories, +but one SHOULD NOT assume that this is the case.
+ +Note
+Currently, there is no universal (platform and file system independent) method to determine if entry is a directory. +One can check this by looking at the size of entry’s data (it should be 0 for directory) AND +the last character of entry’s name (it should be ‘/’). If all of these is true then entry is likely to be a directory.
+ +Note
+Only ZIP containers complying to ISO/IEC 21320-1 standard are supported.
+ +Parameter
+Parameter containerData: Data of ZIP container.
+ +Throws
+ZipError or DeflateError depending on the type of inconsistency in data.
+It may indicate that either the container is damaged or it might not be ZIP container or compressed with Deflate at all.
Returns
+Array of pairs (tuples) where first member is entryName and second member is entryData.
Swift
+public static func open(containerData data: Data) throws -> [(entryName: String, entryData: Data)]
+
+
+
+ containerData
+
+ |
+
+
+
+ Data of ZIP container. + + |
+
Array of pairs (tuples) where first member is entryName and second member is entryData.
@@ -146,7 +146,7 @@ -
A class with unarchive function for Zlib archives.
+Provides unarchive function for Zlib archives.
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums.html index 661c1fe2..ca7e2b87 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums.html @@ -19,7 +19,7 @@ SWCompression Docs - (85% documented) + (100% documented)@@ -252,12 +252,35 @@ Associated value contains already decompressed data.
Undocumented
+Error happened during processing ZIP archive (container). +It may indicate that either the data is damaged or it might not be ZIP archive (container) at all.
+ +NotFoundCentralDirectoryEnd: end of Central Directoty record wasn’t found.WrongSignature: unsupported signature of one of ZIP container’s structures.WrongSize: incorrect compressed or uncompressed size of a ZIP container’s entry’s data.WrongVersion: unsupported number of version needed to extract ZIP container
+(unsupported features are required to open this file).MultiVolumesNotSupported: unsupported feature: multi-volumed or spanned container.EncryptionNotSupported: unsupported feature: encryption.PatchingNotSupported: unsupported feature: patched data.CompressionNotSupported: unsupported feature: specified compression method.WrongLocalHeader: local header of an entry wasn’t consistent with Central Directory record.WrongCRC32: computed checksum of entry’s data wasn’t the same as the one stored in container.Swift
+public enum ZipError: Error
+
+ Error happened during unarchiving xz archive. -It may indicate that either the data is damaged or it might not be xz archive at all.
+Error happened during unarchiving XZ archive. +It may indicate that either the data is damaged or it might not be XZ archive at all.
WrongMagic: ‘magic’ bytes in archive’s header or footer weren’t equal to predefined value.diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/DeflateError.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/DeflateError.html index 6bb6cb8d..44011363 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/DeflateError.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/DeflateError.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/GzipError.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/GzipError.html index 2d1ee4f9..feed5fe0 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/GzipError.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/GzipError.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/LZMA2Error.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/LZMA2Error.html index d7281e4f..c7c14487 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/LZMA2Error.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/LZMA2Error.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/LZMAError.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/LZMAError.html index 5a6ea3d2..4ac8b262 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/LZMAError.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/LZMAError.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/XZError.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/XZError.html index a488b4f5..5cae8403 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/XZError.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Enums/XZError.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
@@ -146,8 +146,8 @@
Error happened during unarchiving xz archive. -It may indicate that either the data is damaged or it might not be xz archive at all.
+Error happened during unarchiving XZ archive. +It may indicate that either the data is damaged or it might not be XZ archive at all.
WrongMagic: ‘magic’ bytes in archive’s header or footer weren’t equal to predefined value.
@@ -140,7 +140,28 @@
Undocumented Error happened during processing ZIP archive (container).
+It may indicate that either the data is damaged or it might not be ZIP archive (container) at all. Undocumented End of Central Directoty record was not found. SwiftZipError
-
+
+ public enum ZipError: Error
+
NotFoundCentralDirectoryEnd: end of Central Directoty record wasn’t found.WrongSignature: unsupported signature of one of ZIP container’s structures.WrongSize: incorrect compressed or uncompressed size of a ZIP container’s entry’s data.WrongVersion: unsupported number of version needed to extract ZIP container
+(unsupported features are required to open this file).MultiVolumesNotSupported: unsupported feature: multi-volumed or spanned container.EncryptionNotSupported: unsupported feature: encryption.PatchingNotSupported: unsupported feature: patched data.CompressionNotSupported: unsupported feature: specified compression method.WrongLocalHeader: local header of an entry wasn’t consistent with Central Directory record.WrongCRC32: computed checksum of entry’s data wasn’t the same as the one stored in container.Declaration
+
+
+ case NotFoundCentralDirectoryEnd
-
-
- WrongCentralDirectoryDisk
+
+
+ WrongSignature
Undocumented
+Wrong signature of one of ZIP container’s structures.
Swift
+case WrongSignature
+
+
-
-
- WrongZip64LocatorSignature
+
+
+ WrongSize
Undocumented
+Wrong either compressed or uncompressed size of a ZIP container’s entry.
-
-
- WrongZip64EndCentralDirectorySignature
-
- Undocumented
+Wrong number of version needed to extract ZIP container.
Swift
+case WrongVersion
+
+ Undocumented
+Archive either spanned or consists of several volumes. This feature is not supported.
Swift
+case MultiVolumesNotSupported
+
+ Undocumented
+Entry or record is encrypted. This feature is not supported.
Swift
+case EncryptionNotSupported
+
+ Undocumented
+Entry contains patched data. This feature is not supported.
Swift
+case PatchingNotSupported
+
+ Undocumented
+Wrong compression method of an entry.
-
-
- WrongLocalHeaderSignature
-
- Undocumented
+Swift
+case CompressionNotSupported
+ Undocumented
+Wrong local header of an entry.
Swift
+case WrongLocalHeader
+
+ Undocumented
+Wrong computed CRC32 of an entry.
-
-
- WrongCompressedSize
-
-
-
-
- WrongUncompressedSize
-
- Undocumented
- -diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Protocols.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Protocols.html index 8d2d61ba..32030438 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Protocols.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Protocols.html @@ -19,7 +19,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Protocols/Archive.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Protocols/Archive.html index ee3b3afc..f6fdb20f 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Protocols/Archive.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Protocols/Archive.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Protocols/DecompressionAlgorithm.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Protocols/DecompressionAlgorithm.html index 1459ae84..201fd36c 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Protocols/DecompressionAlgorithm.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Protocols/DecompressionAlgorithm.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs.html index 3f616f9d..45821d12 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs.html @@ -19,7 +19,7 @@ SWCompression Docs - (85% documented) + (100% documented)
@@ -161,7 +161,7 @@
A strucutre which provides information about gzip archive. A structure which provides information about gzip archive. A strucutre which provides information about zlib archive. A structure which provides information about zlib archive.
@@ -146,7 +146,7 @@
A strucutre which provides information about gzip archive.
+A structure which provides information about gzip archive.
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/GzipHeader/FileSystemType.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/GzipHeader/FileSystemType.html index c43e95a9..96eef7e5 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/GzipHeader/FileSystemType.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/GzipHeader/FileSystemType.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/ZlibHeader.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/ZlibHeader.html index c65fb9c7..4dc1ac86 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/ZlibHeader.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/ZlibHeader.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
@@ -146,7 +146,7 @@ -
A strucutre which provides information about zlib archive.
+A structure which provides information about zlib archive.
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/ZlibHeader/CompressionLevel.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/ZlibHeader/CompressionLevel.html index 4d688d75..ec102b12 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/ZlibHeader/CompressionLevel.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/ZlibHeader/CompressionLevel.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/ZlibHeader/CompressionMethod.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/ZlibHeader/CompressionMethod.html index 5b34178e..ed01b887 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/ZlibHeader/CompressionMethod.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/Structs/ZlibHeader/CompressionMethod.html @@ -20,7 +20,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/index.html b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/index.html index 26f4a59b..c8023a45 100644 --- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/index.html +++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/index.html @@ -19,7 +19,7 @@ SWCompression Docs - (85% documented) + (100% documented)
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/undocumented.json b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/undocumented.json
index 03e16411..1862018e 100644
--- a/docs/docsets/SWCompression.docset/Contents/Resources/Documents/undocumented.json
+++ b/docs/docsets/SWCompression.docset/Contents/Resources/Documents/undocumented.json
@@ -1,124 +1,6 @@
{
"warnings": [
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 11,
- "symbol": "ZipError",
- "symbol_kind": "source.lang.swift.decl.enum",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 12,
- "symbol": "ZipError.NotFoundCentralDirectoryEnd",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 13,
- "symbol": "ZipError.WrongCentralDirectoryDisk",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 14,
- "symbol": "ZipError.WrongZip64LocatorSignature",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 15,
- "symbol": "ZipError.WrongZip64EndCentralDirectorySignature",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 16,
- "symbol": "ZipError.WrongVersion",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 17,
- "symbol": "ZipError.WrongCentralDirectoryHeaderSignature",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 18,
- "symbol": "ZipError.EncryptionNotSupported",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 19,
- "symbol": "ZipError.PatchingNotSupported",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 20,
- "symbol": "ZipError.CompressionNotSupported",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 21,
- "symbol": "ZipError.WrongLocalHeaderSignature",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 22,
- "symbol": "ZipError.WrongLocalHeader",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 23,
- "symbol": "ZipError.WrongCRC32",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 24,
- "symbol": "ZipError.WrongCompressedSize",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 25,
- "symbol": "ZipError.WrongUncompressedSize",
- "symbol_kind": "source.lang.swift.decl.enumelement",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 28,
- "symbol": "ZipContainer",
- "symbol_kind": "source.lang.swift.decl.class",
- "warning": "undocumented"
- },
- {
- "file": "/Users/timofeysolomko/Developer/SWCompression/Sources/ZipContainer.swift",
- "line": 30,
- "symbol": "ZipContainer.open(containerData:)",
- "symbol_kind": "source.lang.swift.decl.function.method.static",
- "warning": "undocumented"
- }
+
],
"source_directory": "/Users/timofeysolomko/Developer/SWCompression"
}
\ No newline at end of file
diff --git a/docs/docsets/SWCompression.docset/Contents/Resources/docSet.dsidx b/docs/docsets/SWCompression.docset/Contents/Resources/docSet.dsidx
index 2596dc3ddc6649e464f8d7397a680edfa57d079b..8536ab2ca0ac1694f3e83152768a257129305220 100644
GIT binary patch
delta 1797
zcmaJ>Yitx%6rOWu=g!Q&rb#Kwvf}o=6x>%|+CZg9x0IGGh4Si)eU$CCy1VUmcUwyo
zcZzK(kMcN)iAXF(gE79q^@lN0iSdp6Flvkv4gN8{q7oHtjMclPnqZ8R$(b{EzBxJf
zJNNt27fJdIIc^bB9LLEg^4CG?g8y+vPn7Fyfs>WrmFt 7_b^`UYl1 H@qo`7qYrYz8~k+yKi@T_3R>KA!S69xrYH%+EVH0VW)r
z#{j!W<(!m9=}mxj4GzF42Sx|r&i~T7purbT_f6>^@R{@S;0=H?YxDk*4R-XZ4{pgn
zCD_8qf?g} hX%8M_=1d_
zb}^Xg2!AU;piIW>>FuLwC~F|8#Gr~lU>Q6SYPh7cj9a7wljmR!G~$VVq;vhvZLUAK
zyraU(f=E}E1=NtGPgn-Y+zo$quroRPC~q&$AG2@d+Lk+mN7@wOEDsH5V~_i=Ai92d
zn;tkgdKj|@Rl~-IQ8gY+>C~*>OsDDJjbJI}TYpy5h*|FE@X2lUDEFaKC{y;^zT28W
zV!AY5ANon0xJQVD@VKQ3s7e{i2RYkM7;z=T)J^CgYngQ{i@78UvfUI~O@otMeIR-X
ze(J9@`-XiOAiMRK)h_!>^_T+3Utg=K4x=1SZ6LIokd(_-sJm?vWs4n^JIO_Nc2WSn
zV}F6=d{XQ-3p@&F;0bU3?@4ZiL6X05!mw{usS7YGirdo0lihq-z1n5VyOX!XkO0BB
zm_?p5j54zbJ(Qao-8^8NoZz2Nsgo!482{nARz(eY#>#
zs_7OSp6OuREVG54SLSwJ