Class ZipStrings
Deprecated way of setting zip encoding provided for backwards compability. Use StringCodec when possible.
Inheritance
Inherited Members
Namespace: ICSharpCode.SharpZipLib.Zip
Assembly: ICSharpCode.SharpZipLib.dll
Syntax
public static class ZipStrings
Remarks
If any ZipStrings properties are being modified, it will enter a backwards compatibility mode, mimicking the old behaviour where a single instance was shared between all Zip* instances.
Properties
| Improve this Doc View SourceCodePage
Deprecated way of setting zip encoding provided for backwards compability. Use StringCodec when possible.
Declaration
[Obsolete("Use ZipFile/Zip*Stream StringCodec instead")]
public static int CodePage { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
If any ZipStrings properties are being modified, it will enter a backwards compatibility mode, mimicking the old behaviour where a single instance was shared between all Zip* instances.
SystemDefaultCodePage
Deprecated way of setting zip encoding provided for backwards compability. Use StringCodec when possible.
Declaration
[Obsolete("Use ZipFile/Zip*Stream StringCodec instead")]
public static int SystemDefaultCodePage { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
If any ZipStrings properties are being modified, it will enter a backwards compatibility mode, mimicking the old behaviour where a single instance was shared between all Zip* instances.
UseUnicode
Deprecated way of setting zip encoding provided for backwards compability. Use StringCodec when possible.
Declaration
[Obsolete("Use ZipFile/Zip*Stream StringCodec instead")]
public static bool UseUnicode { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
Remarks
If any ZipStrings properties are being modified, it will enter a backwards compatibility mode, mimicking the old behaviour where a single instance was shared between all Zip* instances.
Methods
| Improve this Doc View SourceConvertToArray(Int32, String)
Deprecated way of setting zip encoding provided for backwards compability. Use StringCodec when possible.
Declaration
[Obsolete("Use ZipFile/Zip*Stream StringCodec instead")]
public static byte[] ConvertToArray(int flags, string str)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | flags | |
System.String | str |
Returns
Type | Description |
---|---|
System.Byte[] |
Remarks
If any ZipStrings properties are being modified, it will enter a backwards compatibility mode, mimicking the old behaviour where a single instance was shared between all Zip* instances.
ConvertToArray(String)
Deprecated way of setting zip encoding provided for backwards compability. Use StringCodec when possible.
Declaration
[Obsolete("Use ZipFile/Zip*Stream StringCodec instead")]
public static byte[] ConvertToArray(string str)
Parameters
Type | Name | Description |
---|---|---|
System.String | str |
Returns
Type | Description |
---|---|
System.Byte[] |
Remarks
If any ZipStrings properties are being modified, it will enter a backwards compatibility mode, mimicking the old behaviour where a single instance was shared between all Zip* instances.
ConvertToString(Byte[])
Deprecated way of setting zip encoding provided for backwards compability. Use StringCodec when possible.
Declaration
[Obsolete("Use ZipFile/Zip*Stream StringCodec instead")]
public static string ConvertToString(byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data |
Returns
Type | Description |
---|---|
System.String |
Remarks
If any ZipStrings properties are being modified, it will enter a backwards compatibility mode, mimicking the old behaviour where a single instance was shared between all Zip* instances.
ConvertToString(Byte[], Int32)
Deprecated way of setting zip encoding provided for backwards compability. Use StringCodec when possible.
Declaration
[Obsolete("Use ZipFile/Zip*Stream StringCodec instead")]
public static string ConvertToString(byte[] data, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | data | |
System.Int32 | count |
Returns
Type | Description |
---|---|
System.String |
Remarks
If any ZipStrings properties are being modified, it will enter a backwards compatibility mode, mimicking the old behaviour where a single instance was shared between all Zip* instances.
ConvertToStringExt(Int32, Byte[])
Deprecated way of setting zip encoding provided for backwards compability. Use StringCodec when possible.
Declaration
[Obsolete("Use ZipFile/Zip*Stream StringCodec instead")]
public static string ConvertToStringExt(int flags, byte[] data)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | flags | |
System.Byte[] | data |
Returns
Type | Description |
---|---|
System.String |
Remarks
If any ZipStrings properties are being modified, it will enter a backwards compatibility mode, mimicking the old behaviour where a single instance was shared between all Zip* instances.
ConvertToStringExt(Int32, Byte[], Int32)
Deprecated way of setting zip encoding provided for backwards compability. Use StringCodec when possible.
Declaration
[Obsolete("Use ZipFile/Zip*Stream StringCodec instead")]
public static string ConvertToStringExt(int flags, byte[] data, int count)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | flags | |
System.Byte[] | data | |
System.Int32 | count |
Returns
Type | Description |
---|---|
System.String |
Remarks
If any ZipStrings properties are being modified, it will enter a backwards compatibility mode, mimicking the old behaviour where a single instance was shared between all Zip* instances.
GetStringCodec()
Returns a new StringCodec instance or the shared backwards compatible instance.
Declaration
public static StringCodec GetStringCodec()
Returns
Type | Description |
---|---|
StringCodec |