예제 #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);
        }
예제 #2
0
 IOFileEntityWriter(
     Stream stream, Encoding encoding, IOFileEntity entity)
     : base(stream, encoding)
 {
     _entity = entity;
 }