public TextLineDecoder(Encoding encoding, LineDelimiter delimiter)
        {
            if (encoding == null)
                throw new ArgumentNullException("encoding");
            if (delimiter == null)
                throw new ArgumentNullException("delimiter");

            CONTEXT = new AttributeKey(GetType(), "context");
            _encoding = encoding;
            _delimiter = delimiter;

            _delimBuf = encoding.GetBytes(delimiter.Value);
        }
 public TextLineDecoder(LineDelimiter delimiter)
     : this(Encoding.Default, delimiter)
 { }
 public TextLineCodecFactory(Encoding encoding, LineDelimiter encodingDelimiter, LineDelimiter decodingDelimiter)
 {
     _encoder = new TextLineEncoder(encoding, encodingDelimiter);
     _decoder = new TextLineDecoder(encoding, decodingDelimiter);
 }