コード例 #1
0
 public HtmlNodeNavigator(Stream stream, Encoding encoding)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this._doc.Load(stream, encoding);
     this.Reset();
 }
コード例 #2
0
 public HtmlNodeNavigator(string path, bool detectEncodingFromByteOrderMarks)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this._doc.Load(path, detectEncodingFromByteOrderMarks);
     this.Reset();
 }
コード例 #3
0
 public HtmlNodeNavigator(string path)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this._doc.Load(path);
     this.Reset();
 }
コード例 #4
0
 public HtmlNodeNavigator(TextReader reader)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this._doc.Load(reader);
     this.Reset();
 }
コード例 #5
0
 public HtmlNodeNavigator(string path, Encoding encoding, bool detectEncodingFromByteOrderMarks, int buffersize)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this._doc.Load(path, encoding, detectEncodingFromByteOrderMarks, buffersize);
     this.Reset();
 }
コード例 #6
0
 public HtmlNodeNavigator(Stream stream, Encoding encoding, bool detectEncodingFromByteOrderMarks)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this._doc.Load(stream, encoding, detectEncodingFromByteOrderMarks);
     this.Reset();
 }
コード例 #7
0
 private HtmlNodeNavigator(HtmlNodeNavigator nav)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     if (nav == null)
     {
         throw new ArgumentNullException("nav");
     }
     this._doc         = nav._doc;
     this._currentnode = nav._currentnode;
     this._attindex    = nav._attindex;
     this._nametable   = nav._nametable;
 }
コード例 #8
0
 internal HtmlNodeNavigator(HtmlDocument doc, HtmlNode currentNode)
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     if (currentNode == null)
     {
         throw new ArgumentNullException("currentNode");
     }
     if (currentNode.OwnerDocument != doc)
     {
         throw new ArgumentException("Reference node must be a child of this node");
     }
     this._doc = doc;
     this.Reset();
     this._currentnode = currentNode;
 }
コード例 #9
0
 // Methods
 internal HtmlNodeNavigator()
 {
     this._doc       = new HtmlDocument();
     this._nametable = new HtmlNameTable();
     this.Reset();
 }