| CompressionUtilityCreateCompressor Method |
Creates a compressor for the specified stream.
Namespace:
Ookii.Jumbo
Assembly:
Ookii.Jumbo (in Ookii.Jumbo.dll) Version: 2.0.0
Syntax public static Stream CreateCompressor(
this Stream target,
CompressionType type
)
<ExtensionAttribute>
Public Shared Function CreateCompressor (
target As Stream,
type As CompressionType
) As Stream
public:
[ExtensionAttribute]
static Stream^ CreateCompressor(
Stream^ target,
CompressionType type
)
[<ExtensionAttribute>]
static member CreateCompressor :
target : Stream *
type : CompressionType -> Stream
Parameters
- target
- Type: System.IOStream
The stream to write the compressed data to. - type
- Type: Ookii.JumboCompressionType
The type of compression to use.
Return Value
Type:
StreamA stream that compresses the data according to the specified compression type, or
target itself
if
None was specified.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
Stream. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also