예제 #1
0
        protected MimeReader(MimeReader parent, byte[] data)
        {
            if (parent == null)
            {
                throw new ArgumentNullException("parent");
            }
            if (data == null)
            {
                throw new ArgumentNullException("data");
            }

            _parent        = parent;
            _startBoundary = parent.StartBoundary;
            CreateMimeReader(data);
        }
예제 #2
0
        protected MimeReader(MimeReader parent, Queue <string> lines)
        {
            if (parent == null)
            {
                throw new ArgumentNullException("parent");
            }
            if (lines == null)
            {
                throw new ArgumentNullException("lines");
            }

            _parent        = parent;
            _startBoundary = parent.StartBoundary;
            CreateMimeReader(lines);
        }
예제 #3
0
 protected virtual MimeReader createMimeReader(MimeReader parent, byte[] data)
 {
     return(new MimeReader(parent, data));
 }
예제 #4
0
 protected virtual MimeReader createMimeReader(MimeReader parent, Queue <string> lines)
 {
     return(new MimeReader(parent, lines));
 }