19 using System.Collections.Generic;
33 abstract public byte[]
Compress(
byte[] uncompressedData);
40 abstract public byte[]
Decompress(
byte[] compressedData);
46 abstract public string GetName();
53 abstract public override bool Equals(
object other);
abstract override bool Equals(object other)
Codecs must implement an equals() method
abstract string GetName()
Name of this codec type
static Codec CreateCodecFromString(string codecType)
Factory method to return child codec instance based on string type
abstract byte [] Decompress(byte[] compressedData)
Decompress data using implemented codec
const string DeflateCodec
override string ToString()
Returns name of codec
abstract byte [] Compress(byte[] uncompressedData)
Compress data using implemented codec
abstract override int GetHashCode()
Codecs must implement a HashCode() method that is consistent with Equals
static Codec CreateCodec(Type codecType)
Factory method to return child codec instance based on Codec.Type