public override void Write(Stream output)
{
MemoryStream finalContent = new MemoryStream();
this.FrameHeader.Write(finalContent);
this.WriteContent.WriteTo(finalContent);
this.Length = (UInt32)finalContent.Length + 8;
this.Signature = "CWS";
byte[] compressedOutput = Compress(finalContent);
WriteHeader(output);
output.Write(compressedOutput, 0, compressedOutput.Length);
}