SaaS CMS has officially launched! Learn more now.

Class AutoCompressString

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. A immutable class that wraps a string with support for compression

Inheritance
System.Object
AutoCompressString
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Util.Internal
Assembly: EPiServer.dll
Version: 11.20.7
Syntax
public class AutoCompressString
Remarks

Important! You cannot change the state of this class after compression

Constructors

AutoCompressString(String)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the AutoCompressString class.

Declaration
public AutoCompressString(string str)
Parameters
Type Name Description
System.String str

The string to be wrapped

Fields

Empty

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. An empty string

Declaration
public static readonly AutoCompressString Empty
Field Value
Type Description
AutoCompressString

Properties

Threshold

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Gets the value for when strings are compressed

Declaration
public static int Threshold { get; }
Property Value
Type Description
System.Int32

Methods

SetThreshold(Int32)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Set the global threshold for when strings are compressed

Declaration
public static void SetThreshold(int val)
Parameters
Type Name Description
System.Int32 val

The size of the threshold

ToString()

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Main method to read string value

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()
Remarks

This method is stateless and must always be

WriteTo(TextWriter)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Unzip compressed data and stream to writer

Declaration
public void WriteTo(TextWriter writer)
Parameters
Type Name Description
System.IO.TextWriter writer

Extension Methods