Beispiel #1
0
        public static IOFileEntityWriter Create(
            Stream stream, 
            Encoding encoding,
            IOFileEntity entity)
        {
            if (stream == null) throw new ArgumentNullException("stream");
            if (encoding == null) throw new ArgumentNullException("encoding");
            if (entity == null) throw new ArgumentNullException("entity");

            return new IOFileEntityWriter(stream, encoding, entity);
        }
Beispiel #2
0
 IOFileEntityWriter(
     Stream stream, Encoding encoding, IOFileEntity entity)
     : base(stream, encoding)
 {
     _entity = entity;
 }