Walks a working directory tree as part of a {@link TreeWalk}. Most applications will want to use the standard implementation of this iterator, {@link FileTreeIterator}, as that does all IO through the standard java.io package. Plugins for a Java based IDE may however wish to Create their own implementations of this class to allow traversal of the IDE's project space, as well as benefit from any caching the IDE may have. FileTreeIterator
Inheritance: AbstractTreeIterator
 /// <summary>
 /// Create an iterator for a subtree of an existing iterator.
 /// </summary>
 /// <param name="parent">Parent tree iterator.</param>
 protected WorkingTreeIterator(WorkingTreeIterator parent) 
     : base(parent)
 {
     _nameEncoder = parent._nameEncoder;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create a new iterator to traverse a subdirectory.
 /// </summary>
 /// <param name="p">
 /// The parent iterator we were created from.
 /// </param>
 /// <param name="root">
 /// The subdirectory. This should be a directory contained within
 /// the parent directory.
 /// </param>
 public FileTreeIterator(WorkingTreeIterator p, DirectoryInfo root)
     : base(p)
 {
     _directory = root;
     Init(Entries);
 }
 /// <summary>
 /// Create an iterator for a subtree of an existing iterator.
 /// </summary>
 /// <param name="parent">Parent tree iterator.</param>
 protected WorkingTreeIterator(WorkingTreeIterator parent)
     : base(parent)
 {
     _nameEncoder = parent._nameEncoder;
 }