Browse Source

In Test:
* System.IO.Compression/GzipStreamTest.cs: Fix compile errors.
* System.IO.Compression/GzipStreamTest.cs: Likewise.

In System.IO.Compression:
* DeflateStream.cs, GzipStream.cs, CompressionMode.cs: Make class public.

svn path=/trunk/mcs/; revision=37025

Raja R Harinath 21 years ago
parent
commit
ebd4a7df44

+ 4 - 0
mcs/class/System/System.IO.Compression/ChangeLog

@@ -1,3 +1,7 @@
+2004-12-03  Raja R Harinath  <[email protected]>
+
+	* DeflateStream.cs, GzipStream.cs, CompressionMode.cs: Make class public.
+
 2004-11-10  Martin Baulig  <[email protected]>
 
 	* DeflateStream.cs, GzipStream.cs: `System.IO.Stream.Length' doesn't

+ 1 - 1
mcs/class/System/System.IO.Compression/CompressionMode.cs

@@ -11,7 +11,7 @@
 #if NET_2_0
 
 namespace System.IO.Compression {
-	enum CompressionMode {
+	public enum CompressionMode {
 		Decompress=0,	// Decompress the given stream.
 		Compress=1	// Compress the given stream.
 	};

+ 1 - 1
mcs/class/System/System.IO.Compression/DeflateStream.cs

@@ -15,7 +15,7 @@ using System.Runtime.InteropServices;
 using System.Runtime.Remoting.Messaging;
 
 namespace System.IO.Compression {
-	class DeflateStream : Stream
+	public class DeflateStream : Stream
 	{
 		private Stream compressedStream;
 		private CompressionMode mode;

+ 1 - 1
mcs/class/System/System.IO.Compression/GzipStream.cs

@@ -15,7 +15,7 @@ using System.Runtime.InteropServices;
 using System.Runtime.Remoting.Messaging;
 
 namespace System.IO.Compression {
-	class GzipStream : Stream
+	public class GzipStream : Stream
 	{
 		private DeflateStream deflateStream;
 

+ 5 - 0
mcs/class/System/Test/ChangeLog

@@ -1,3 +1,8 @@
+2004-12-03  Raja R Harinath  <[email protected]>
+
+	* System.IO.Compression/GzipStreamTest.cs: Fix compile errors.
+	* System.IO.Compression/GzipStreamTest.cs: Likewise.
+
 2004-10-04  Raja R Harinath  <[email protected]>
 
 	* System.IO.Compression/DeflateStreamTest.cs: NET_2_0 only.

+ 3 - 3
mcs/class/System/Test/System.IO.Compression/DeflateStreamTest.cs

@@ -180,7 +180,7 @@ namespace MonoTests.System.IO.Compression
 			byte [] data = {0xf3, 0x48, 0xcd, 0xc9, 0xc9, 0xe7, 0x02, 0x00 };
 			MemoryStream backing = new MemoryStream (data);
 			DeflateStream decompressing = new DeflateStream (backing, CompressionMode.Decompress);
-			decompressing.Length = 20;
+			decompressing.SetLength (20);
 		}
 
 		[Test]
@@ -189,7 +189,7 @@ namespace MonoTests.System.IO.Compression
 			byte [] data = {0xf3, 0x48, 0xcd, 0xc9, 0xc9, 0xe7, 0x02, 0x00 };
 			MemoryStream backing = new MemoryStream (data);
 			DeflateStream decompressing = new DeflateStream (backing, CompressionMode.Decompress);
-			int length = decompressing.Length;
+			long length = decompressing.Length;
 		}
 
 		[Test]
@@ -198,7 +198,7 @@ namespace MonoTests.System.IO.Compression
 			byte [] data = {0xf3, 0x48, 0xcd, 0xc9, 0xc9, 0xe7, 0x02, 0x00 };
 			MemoryStream backing = new MemoryStream (data);
 			DeflateStream decompressing = new DeflateStream (backing, CompressionMode.Decompress);
-			int position = decompressing.Position;
+			long position = decompressing.Position;
 		}
 	}
 }

+ 3 - 3
mcs/class/System/Test/System.IO.Compression/GzipStreamTest.cs

@@ -180,7 +180,7 @@ namespace MonoTests.System.IO.Compression
 			byte [] data = {0x1f, 0x8b, 0x08, 0x08, 0x70, 0xbb, 0x5d, 0x41, 0x00, 0x03, 0x74, 0x65, 0x73, 0x74, 0x00, 0xf3, 0x48, 0xcd, 0xc9, 0xc9, 0xe7, 0x02, 0x00, 0x16, 0x35, 0x96, 0x31, 0x06, 0x00, 0x00, 0x00 };
 			MemoryStream backing = new MemoryStream (data);
 			GzipStream decompressing = new GzipStream (backing, CompressionMode.Decompress);
-			decompressing.Length = 20;
+			decompressing.SetLength (20);
 		}
 
 		[Test]
@@ -189,7 +189,7 @@ namespace MonoTests.System.IO.Compression
 			byte [] data = {0x1f, 0x8b, 0x08, 0x08, 0x70, 0xbb, 0x5d, 0x41, 0x00, 0x03, 0x74, 0x65, 0x73, 0x74, 0x00, 0xf3, 0x48, 0xcd, 0xc9, 0xc9, 0xe7, 0x02, 0x00, 0x16, 0x35, 0x96, 0x31, 0x06, 0x00, 0x00, 0x00 };
 			MemoryStream backing = new MemoryStream (data);
 			GzipStream decompressing = new GzipStream (backing, CompressionMode.Decompress);
-			int length = decompressing.Length;
+			long length = decompressing.Length;
 		}
 
 		[Test]
@@ -198,7 +198,7 @@ namespace MonoTests.System.IO.Compression
 			byte [] data = {0x1f, 0x8b, 0x08, 0x08, 0x70, 0xbb, 0x5d, 0x41, 0x00, 0x03, 0x74, 0x65, 0x73, 0x74, 0x00, 0xf3, 0x48, 0xcd, 0xc9, 0xc9, 0xe7, 0x02, 0x00, 0x16, 0x35, 0x96, 0x31, 0x06, 0x00, 0x00, 0x00 };
 			MemoryStream backing = new MemoryStream (data);
 			GzipStream decompressing = new GzipStream (backing, CompressionMode.Decompress);
-			int position = decompressing.Position;
+			long position = decompressing.Position;
 		}
 	}
 }