diff --git a/help/api/ICSharpCode.SharpZipLib.GZip.GZipOutputStream.html b/help/api/ICSharpCode.SharpZipLib.GZip.GZipOutputStream.html index f90ff1c7f..fde444a92 100644 --- a/help/api/ICSharpCode.SharpZipLib.GZip.GZipOutputStream.html +++ b/help/api/ICSharpCode.SharpZipLib.GZip.GZipOutputStream.html @@ -25,28 +25,28 @@
This filter stream is used to compress a stream into a "GZIP" stream. -The "GZIP" format is described in RFC 1952.
-author of the original java version : John Leuner
+This filter stream is used to compress a stream into a "GZIP" stream. +The "GZIP" format is described in RFC 1952.
+author of the original java version : John Leuner
public class GZipOutputStream : DeflaterOutputStream
This sample shows how to gzip a file
-using System;
-using System.IO;
-
-using ICSharpCode.SharpZipLib.GZip;
-using ICSharpCode.SharpZipLib.Core;
-
-class MainClass
-{
- public static void Main(string[] args)
- {
- using (Stream s = new GZipOutputStream(File.Create(args[0] + ".gz")))
- using (FileStream fs = File.OpenRead(args[0])) {
- byte[] writeData = new byte[4096];
- Streamutils.Copy(s, fs, writeData);
- }
- }
- }
-}
+ This sample shows how to gzip a file
+using System;
+using System.IO;
+
+using ICSharpCode.SharpZipLib.GZip;
+using ICSharpCode.SharpZipLib.Core;
+
+class MainClass
+{
+ public static void Main(string[] args)
+ {
+ using (Stream out = new GZipOutputStream(File.Create(args[0] + ".gz")))
+ using (FileStream in = File.OpenRead(args[0])) {
+ byte[] writeData = new byte[4096];
+ StreamUtils.Copy(in, out, writeData);
+ }
+ }
+ }
+}
Creates a GzipOutputStream with the default buffer size
+Creates a GzipOutputStream with the default buffer size
The stream to read data (to be compressed) from
+The stream to read data (to be compressed) from
Creates a GZipOutputStream with the specified buffer size
+Creates a GZipOutputStream with the specified buffer size
The stream to read data (to be compressed) from
+The stream to read data (to be compressed) from
Size of the buffer to use
+Size of the buffer to use
CRC-32 value for uncompressed data
+CRC-32 value for uncompressed data
Original filename
+Original filename
Writes remaining compressed output data to the output stream -and closes it.
+Writes remaining compressed output data to the output stream +and closes it.
Finish compression and write any footer information required to stream
+Finish compression and write any footer information required to stream
Flushes the stream by ensuring the header is written, and then calling Flush() -on the deflater.
+Flushes the stream by ensuring the header is written, and then calling Flush() +on the deflater.
Get the current compression level.
+Get the current compression level.
The current compression level.
+The current compression level.
Sets the active compression level (0-9). The new level will be activated -immediately.
+Sets the active compression level (0-9). The new level will be activated +immediately.
The compression level to set.
+The compression level to set.
Write given buffer to output updating crc
+Write given buffer to output updating crc
Buffer to write
+Buffer to write
Offset of first byte in buf to write
+Offset of first byte in buf to write
Number of bytes to write
+Number of bytes to write