Add System.IO.Compression.FileSystem stubs.
authorMartin Baulig <martin.baulig@xamarin.com>
Tue, 12 Mar 2013 20:18:01 +0000 (16:18 -0400)
committerMartin Baulig <martin.baulig@xamarin.com>
Tue, 12 Mar 2013 21:22:59 +0000 (17:22 -0400)
18 files changed:
mcs/class/Makefile
mcs/class/System.IO.Compression.FileSystem/AssemblyInfo.cs [new file with mode: 0644]
mcs/class/System.IO.Compression.FileSystem/Makefile [new file with mode: 0644]
mcs/class/System.IO.Compression.FileSystem/System.IO.Compression.FileSystem.dll.sources [new file with mode: 0644]
mcs/class/System.IO.Compression.FileSystem/ZipFile.cs [new file with mode: 0644]
mcs/class/System.IO.Compression.FileSystem/ZipFileExtensions.cs [new file with mode: 0644]
mcs/class/System.IO.Compression/AssemblyInfo.cs [new file with mode: 0644]
mcs/class/System.IO.Compression/Makefile [new file with mode: 0644]
mcs/class/System.IO.Compression/System.IO.Compression.dll.sources [new file with mode: 0644]
mcs/class/System.IO.Compression/TypeForwarders.cs [new file with mode: 0644]
mcs/class/System.IO.Compression/ZipArchive.cs [new file with mode: 0644]
mcs/class/System.IO.Compression/ZipArchiveEntry.cs [new file with mode: 0644]
mcs/class/System.IO.Compression/ZipArchiveMode.cs [new file with mode: 0644]
mcs/class/System/System.IO.Compression/CompressionLevel.cs [new file with mode: 0644]
mcs/class/System/System.IO.Compression/DeflateStream.cs
mcs/class/System/System.IO.Compression/GZipStream.cs
mcs/class/System/System.dll.sources
mcs/class/System/mobile_System.dll.sources

index 2d2d0c0fb93b971ee08632f447419a9fd50566a1..4ea234bdcfcb30219b4646f2f2fb102b93288d28 100644 (file)
@@ -154,7 +154,9 @@ mobile_dirs := \
        System.Reactive.PlatformServices \
        System.Reactive.Experimental \
        System.Reactive.Debugger        \
-       System.Net.Http
+       System.Net.Http \
+       System.IO.Compression \
+       System.IO.Compression.FileSystem
 
 monodroid_dirs := \
        Mono.CompilerServices.SymbolWriter      \
@@ -244,8 +246,10 @@ net_4_5_dirs := \
        System.Web.Http.SelfHost \
        EntityFramework \
        EntityFramework.SqlServer       \
-       Mono.CodeContracts
-
+       Mono.CodeContracts \
+       System.IO.Compression \
+       System.IO.Compression.FileSystem
+       
 net_2_0_SUBDIRS := $(common_dirs) $(net_2_0_dirs) $(net_2_0_only_dirs) aot-compiler
 monodroid_SUBDIRS := $(mobile_dirs) $(monodroid_dirs)
 monotouch_SUBDIRS := $(mobile_dirs)
diff --git a/mcs/class/System.IO.Compression.FileSystem/AssemblyInfo.cs b/mcs/class/System.IO.Compression.FileSystem/AssemblyInfo.cs
new file mode 100644 (file)
index 0000000..0bd0d40
--- /dev/null
@@ -0,0 +1,39 @@
+//
+// Author:
+//       Martin Baulig <martin.baulig@xamarin.com>
+//
+// Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using System.Reflection;
+
+[assembly: AssemblyTitle ("System.IO.Compression.FileSystem.dll")]
+[assembly: AssemblyDescription ("System.IO.Compression.FileSystem.dll")]
+[assembly: AssemblyDefaultAlias ("System.IO.Compression.FileSystem.dll")]
+
+[assembly: AssemblyCompany (Consts.MonoCompany)]
+[assembly: AssemblyProduct (Consts.MonoProduct)]
+[assembly: AssemblyCopyright (Consts.MonoCopyright)]
+[assembly: AssemblyVersion (Consts.FxVersion)]
+[assembly: AssemblyInformationalVersion (Consts.FxFileVersion)]
+[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
+[assembly: AssemblyDelaySign (true)]
+[assembly: AssemblyKeyFile ("../../ecma.pub")]
diff --git a/mcs/class/System.IO.Compression.FileSystem/Makefile b/mcs/class/System.IO.Compression.FileSystem/Makefile
new file mode 100644 (file)
index 0000000..4e36c8a
--- /dev/null
@@ -0,0 +1,10 @@
+thisdir = class/System.IO.Compression.FileSystem
+SUBDIRS = 
+include ../../build/rules.make
+
+LIBRARY = System.IO.Compression.FileSystem.dll
+LIB_MCS_FLAGS = /r:System /r:System.IO.Compression.dll
+
+NO_TEST = yes
+
+include ../../build/library.make
diff --git a/mcs/class/System.IO.Compression.FileSystem/System.IO.Compression.FileSystem.dll.sources b/mcs/class/System.IO.Compression.FileSystem/System.IO.Compression.FileSystem.dll.sources
new file mode 100644 (file)
index 0000000..882631c
--- /dev/null
@@ -0,0 +1,5 @@
+AssemblyInfo.cs
+ZipFile.cs
+ZipFileExtensions.cs
+../../build/common/Consts.cs
+../../build/common/MonoTODOAttribute.cs
\ No newline at end of file
diff --git a/mcs/class/System.IO.Compression.FileSystem/ZipFile.cs b/mcs/class/System.IO.Compression.FileSystem/ZipFile.cs
new file mode 100644 (file)
index 0000000..e601670
--- /dev/null
@@ -0,0 +1,89 @@
+//
+// ZipFile.cs
+//
+// Author:
+//       Martin Baulig <martin.baulig@xamarin.com>
+//
+// Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+using System;
+using System.Text;
+
+namespace System.IO.Compression
+{
+       [MonoTODO]
+       public static class ZipFile
+       {
+               public static void CreateFromDirectory (
+                       string sourceDirectoryName, string destinationArchiveFileName)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void CreateFromDirectory (
+                       string sourceDirectoryName, string destinationArchiveFileName,
+                       CompressionLevel compressionLevel, bool includeBaseDirectory)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void CreateFromDirectory (
+                       string sourceDirectoryName,
+                       string destinationArchiveFileName,
+                       CompressionLevel compressionLevel,
+                       bool includeBaseDirectory,
+                       Encoding entryNameEncoding)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void ExtractToDirectory (
+                       string sourceArchiveFileName, string destinationDirectoryName)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void ExtractToDirectory (
+                       string sourceArchiveFileName, string destinationDirectoryName,
+                       Encoding entryNameEncoding)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static ZipArchive Open (
+                       string archiveFileName, ZipArchiveMode mode)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static ZipArchive Open (
+                       string archiveFileName, ZipArchiveMode mode,
+                       Encoding entryNameEncoding)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static ZipArchive OpenRead (string archiveFileName)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}
+
diff --git a/mcs/class/System.IO.Compression.FileSystem/ZipFileExtensions.cs b/mcs/class/System.IO.Compression.FileSystem/ZipFileExtensions.cs
new file mode 100644 (file)
index 0000000..1abe0e0
--- /dev/null
@@ -0,0 +1,70 @@
+//
+// ZipFileExtensions.cs
+//
+// Author:
+//       Martin Baulig <martin.baulig@xamarin.com>
+//
+// Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+using System;
+
+namespace System.IO.Compression
+{
+       [MonoTODO]
+       public static class ZipFileExtensions
+       {
+               public static ZipArchiveEntry CreateEntryFromFile (
+                       this ZipArchive destination, string sourceFileName,
+                       string entryName)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static ZipArchiveEntry CreateEntryFromFile (
+                       this ZipArchive destination, string sourceFileName,
+                       string entryName, CompressionLevel compressionLevel
+                       )
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void ExtractToDirectory (
+                       this ZipArchive source,
+                       string destinationDirectoryName)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void ExtractToFile (
+                       this ZipArchiveEntry source,
+                       string destinationFileName)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public static void ExtractToFile (
+                       this ZipArchiveEntry source, string destinationFileName,
+                       bool overwrite)
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}
+
diff --git a/mcs/class/System.IO.Compression/AssemblyInfo.cs b/mcs/class/System.IO.Compression/AssemblyInfo.cs
new file mode 100644 (file)
index 0000000..d9dfdb8
--- /dev/null
@@ -0,0 +1,39 @@
+//
+// Author:
+//       Martin Baulig <martin.baulig@xamarin.com>
+//
+// Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+using System;
+using System.Reflection;
+
+[assembly: AssemblyTitle ("System.IO.Compression.dll")]
+[assembly: AssemblyDescription ("System.IO.Compression.dll")]
+[assembly: AssemblyDefaultAlias ("System.IO.Compression.dll")]
+
+[assembly: AssemblyCompany (Consts.MonoCompany)]
+[assembly: AssemblyProduct (Consts.MonoProduct)]
+[assembly: AssemblyCopyright (Consts.MonoCopyright)]
+[assembly: AssemblyVersion (Consts.FxVersion)]
+[assembly: AssemblyInformationalVersion (Consts.FxFileVersion)]
+[assembly: AssemblyFileVersion (Consts.FxFileVersion)]
+[assembly: AssemblyDelaySign (true)]
+[assembly: AssemblyKeyFile ("../../ecma.pub")]
diff --git a/mcs/class/System.IO.Compression/Makefile b/mcs/class/System.IO.Compression/Makefile
new file mode 100644 (file)
index 0000000..91a8458
--- /dev/null
@@ -0,0 +1,10 @@
+thisdir = class/System.IO.Compression
+SUBDIRS = 
+include ../../build/rules.make
+
+LIBRARY = System.IO.Compression.dll
+LIB_MCS_FLAGS = /r:System
+
+NO_TEST = yes
+
+include ../../build/library.make
diff --git a/mcs/class/System.IO.Compression/System.IO.Compression.dll.sources b/mcs/class/System.IO.Compression/System.IO.Compression.dll.sources
new file mode 100644 (file)
index 0000000..051da23
--- /dev/null
@@ -0,0 +1,7 @@
+AssemblyInfo.cs
+TypeForwarders.cs
+ZipArchive.cs
+ZipArchiveEntry.cs
+ZipArchiveMode.cs
+../../build/common/Consts.cs
+../../build/common/MonoTODOAttribute.cs
\ No newline at end of file
diff --git a/mcs/class/System.IO.Compression/TypeForwarders.cs b/mcs/class/System.IO.Compression/TypeForwarders.cs
new file mode 100644 (file)
index 0000000..89995d9
--- /dev/null
@@ -0,0 +1,30 @@
+//
+// TypeForwarders.cs
+//
+// Author:
+//       Martin Baulig <martin.baulig@xamarin.com>
+//
+// Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+
+[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.IO.Compression.CompressionMode))]
+[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.IO.Compression.DeflateStream))]
+[assembly: System.Runtime.CompilerServices.TypeForwardedToAttribute(typeof(System.IO.Compression.GZipStream))]
+
diff --git a/mcs/class/System.IO.Compression/ZipArchive.cs b/mcs/class/System.IO.Compression/ZipArchive.cs
new file mode 100644 (file)
index 0000000..c8f68f7
--- /dev/null
@@ -0,0 +1,97 @@
+//
+// ZipArchive.cs
+//
+// Author:
+//       Martin Baulig <martin.baulig@xamarin.com>
+//
+// Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Text;
+
+namespace System.IO.Compression
+{
+       [MonoTODO]
+       public class ZipArchive : IDisposable
+       {
+               public ZipArchive (Stream stream)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public ZipArchive (Stream stream, ZipArchiveMode mode)
+                       : this (stream)
+               {
+               }
+
+               public ZipArchive (Stream stream, ZipArchiveMode mode,
+                                  bool leaveOpen)
+                       : this (stream, mode)
+               {
+               }
+
+               public ZipArchive (Stream stream, ZipArchiveMode mode,
+                                  bool leaveOpen, Encoding entryNameEncoding)
+                       : this (stream, mode, leaveOpen)
+               {
+               }
+
+               public ReadOnlyCollection<ZipArchiveEntry> Entries {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               public ZipArchiveMode Mode {
+                       get {
+                               throw new NotImplementedException ();
+                       }
+               }
+
+               public ZipArchiveEntry CreateEntry (string entryName)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public ZipArchiveEntry CreateEntry (string entryName,
+                                                   CompressionLevel compressionLevel)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public ZipArchiveEntry GetEntry (string entryName)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               protected virtual void Dispose (bool disposing)
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public void Dispose ()
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}
+
diff --git a/mcs/class/System.IO.Compression/ZipArchiveEntry.cs b/mcs/class/System.IO.Compression/ZipArchiveEntry.cs
new file mode 100644 (file)
index 0000000..a92de5a
--- /dev/null
@@ -0,0 +1,72 @@
+//
+// ZipArchiveEntry.cs
+//
+// Author:
+//       Martin Baulig <martin.baulig@xamarin.com>
+//
+// Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+using System;
+
+namespace System.IO.Compression
+{
+       [MonoTODO]
+       public class ZipArchiveEntry
+       {
+               public ZipArchive Archive {
+                       get;
+                       private set;
+               }
+
+               public long CompressedLength {
+                       get;
+                       private set;
+               }
+
+               public string FullName {
+                       get;
+                       private set;
+               }
+
+               public DateTimeOffset LastWriteTime {
+                       get; set;
+               }
+
+               public long Length {
+                       get;
+                       private set;
+               }
+
+               public string Name {
+                       get;
+                       private set;
+               }
+
+               public void Delete ()
+               {
+                       throw new NotImplementedException ();
+               }
+
+               public Stream Open ()
+               {
+                       throw new NotImplementedException ();
+               }
+       }
+}
diff --git a/mcs/class/System.IO.Compression/ZipArchiveMode.cs b/mcs/class/System.IO.Compression/ZipArchiveMode.cs
new file mode 100644 (file)
index 0000000..a67fc52
--- /dev/null
@@ -0,0 +1,37 @@
+//
+// ZipArchiveMode.cs
+//
+// Author:
+//       Martin Baulig <martin.baulig@xamarin.com>
+//
+// Copyright (c) 2013 Xamarin Inc. (http://www.xamarin.com)
+//
+// Permission is hereby granted, free of charge, to any person obtaining a copy
+// of this software and associated documentation files (the "Software"), to deal
+// in the Software without restriction, including without limitation the rights
+// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+// copies of the Software, and to permit persons to whom the Software is
+// furnished to do so, subject to the following conditions:
+//
+// The above copyright notice and this permission notice shall be included in
+// all copies or substantial portions of the Software.
+//
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+// THE SOFTWARE.
+using System;
+
+namespace System.IO.Compression
+{
+       public enum ZipArchiveMode
+       {
+               Read,
+               Create,
+               Update
+       }
+}
+
diff --git a/mcs/class/System/System.IO.Compression/CompressionLevel.cs b/mcs/class/System/System.IO.Compression/CompressionLevel.cs
new file mode 100644 (file)
index 0000000..7ea3a7a
--- /dev/null
@@ -0,0 +1,35 @@
+//
+// Authors:
+//      Martin Baulig (martin.baulig@xamarin.com)
+//
+// Copyright 2012 Xamarin Inc. (http://www.xamarin.com)
+//
+//
+// Permission is hereby granted, free of charge, to any person obtaining
+// a copy of this software and associated documentation files (the
+// "Software"), to deal in the Software without restriction, including
+// without limitation the rights to use, copy, modify, merge, publish,
+// distribute, sublicense, and/or sell copies of the Software, and to
+// permit persons to whom the Software is furnished to do so, subject to
+// the following conditions:
+// 
+// The above copyright notice and this permission notice shall be
+// included in all copies or substantial portions of the Software.
+// 
+// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+//
+#if NET_4_5
+namespace System.IO.Compression {
+       public enum CompressionLevel {
+               Optional,
+               Fastest,
+               NoCompression
+       }
+}
+#endif
index 351679063313d0b8ab7311e5f9ce7d1cdd470277..00c92ef503cc6ba03fa8c8cac22bb304f2e5acb4 100644 (file)
@@ -87,6 +87,22 @@ namespace System.IO.Compression {
                        this.mode = mode;
                        this.leaveOpen = leaveOpen;
                }
+               
+#if NET_4_5
+               [MonoTODO]
+               public DeflateStream (Stream stream, CompressionLevel compressionLevel)
+                       : this (stream, CompressionMode.Compress)
+               {
+                       throw new NotImplementedException ();
+               }
+               
+               [MonoTODO]
+               public DeflateStream (Stream stream, CompressionLevel compressionLevel, bool leaveOpen)
+                       : this (stream, CompressionMode.Compress, leaveOpen)
+               {
+                       throw new NotImplementedException ();
+               }
+#endif
 
                protected override void Dispose (bool disposing)
                {
index 0fd9a63a2659e346e526ad61bd9a51d1e01e2ef7..5ee3ccccff5d3f56d2d8d090d296ad8531dbe983 100644 (file)
@@ -47,6 +47,23 @@ namespace System.IO.Compression {
                public GZipStream (Stream compressedStream, CompressionMode mode, bool leaveOpen) {
                        this.deflateStream = new DeflateStream (compressedStream, mode, leaveOpen, true);
                }
+               
+               
+#if NET_4_5
+               [MonoTODO]
+               public GZipStream (Stream stream, CompressionLevel compressionLevel)
+                       : this (stream, CompressionMode.Compress)
+               {
+                       throw new NotImplementedException ();
+               }
+               
+               [MonoTODO]
+               public GZipStream (Stream stream, CompressionLevel compressionLevel, bool leaveOpen)
+                       : this (stream, CompressionMode.Compress, leaveOpen)
+               {
+                       throw new NotImplementedException ();
+               }
+#endif
 
                protected override void Dispose (bool disposing)
                {
index 033617040907753e16b63f4b1f498e95afe031a9..2137f305d7657af2e5d12b90a49fb4819d5cf036 100644 (file)
@@ -580,6 +580,7 @@ System/GenericUriParserOptions.cs
 System/GopherStyleUriParser.cs
 System/HttpStyleUriParser.cs
 System/Platform.cs
+System.IO.Compression/CompressionLevel.cs
 System.IO.Compression/CompressionMode.cs
 System.IO.Compression/DeflateStream.cs
 System.IO.Compression/GZipStream.cs
index 14eddcbac6c295ecdfec1198393d54345af19626..e864e434bce52e7705b7c4097a6fb88f9b2fbf78 100644 (file)
@@ -218,6 +218,7 @@ System.Diagnostics/TraceOptions.cs
 System.Diagnostics/ThreadPriorityLevel.cs
 System.Diagnostics/ThreadState.cs
 System.Diagnostics/ThreadWaitReason.cs
+System.IO.Compression/CompressionLevel.cs
 System.IO.Compression/CompressionMode.cs
 System.IO.Compression/DeflateStream.cs
 System.IO.Compression/GZipStream.cs