protected FrameWriter(Frame frameToWriter, FrameHeaderWriter headerWriter, string frameID, EncodingScheme encoding)
{
if(frameToWriter==null)
{
throw new ArgumentNullException("The Frame object passed can not be null.");
}
if(headerWriter==null)
{
throw new ArgumentNullException("The FrameHeaderWriter object can not be null.");
}
this._frameID=frameID;
this._frame=frameToWriter;
this._headerWriter=headerWriter;
this._encoding=encoding;
}