Show / Hide Table of Contents

# Interface ICompressionPolicy

Policy interface for Message Compression, the policy should return a new Stream for compression or decompression upon request that wraps the provided Stream instance.

##### Inherited Members

System.ICloneable.Clone()

###### Namespace: Apache.NMS.ActiveMQ

###### Assembly: Apache.NMS.ActiveMQ.dll

##### Syntax

    public interface ICompressionPolicy : ICloneable

### Methods

| Improve this Doc View Source

#### CreateCompressionStream(Stream)

##### Declaration

    Stream CreateCompressionStream(Stream data)

##### Parameters

Type | Name | Description
--- | --- | ---
System.IO.Stream | data |

##### Returns

Type | Description
--- | ---
System.IO.Stream |

| Improve this Doc View Source

#### CreateDecompressionStream(Stream)

##### Declaration

    Stream CreateDecompressionStream(Stream data)

##### Parameters

Type | Name | Description
--- | --- | ---
System.IO.Stream | data |

##### Returns

Type | Description
--- | ---
System.IO.Stream |