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
Inherited Members
Namespace: EPiServer.Util.Internal
Assembly: EPiServer.dll
Version: 11.20.7Syntax
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
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 |