C# Class GitSharp.Core.TreeWalk.WorkingTreeIterator

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
Show file Open project: stschake/GitSharp Class Usage Examples

Protected Properties

Property Type Description
Eof Entry[]

Private Properties

Property Type Description
IdBufferBlob byte[]
InitializeDigest void
LastPathChar int
ParseEntry void

Public Methods

Method Description
back ( int delta ) : void
eof ( ) : bool
first ( ) : bool
getEntryLastModified ( ) : long

Get the last modified time of this entry.

getEntryLength ( ) : long

Get the byte Length of this entry.

idBuffer ( ) : byte[]
idOffset ( ) : int
next ( int delta ) : void

Protected Methods

Method Description
Init ( Entry list ) : void

Constructor helper.

WorkingTreeIterator ( ) : System

Create a new iterator with no parent.

WorkingTreeIterator ( WorkingTreeIterator parent ) : System

Create an iterator for a subtree of an existing iterator.

WorkingTreeIterator ( string prefix ) : System

Create a new iterator with no parent and a prefix. The prefix path supplied is inserted in front of all paths generated by this iterator. It is intended to be used when an iterator is being created for a subsection of an overall repository and needs to be combined with other iterators that are created to run over the entire repository namespace.

Private Methods

Method Description
IdBufferBlob ( Entry entry ) : byte[]
InitializeDigest ( ) : void
LastPathChar ( Entry e ) : int
ParseEntry ( ) : void

Method Details

Init() protected method

Constructor helper.
protected Init ( Entry list ) : void
list Entry /// Files in the subtree of the work tree this iterator operates on. ///
return void

WorkingTreeIterator() protected method

Create a new iterator with no parent.
protected WorkingTreeIterator ( ) : System
return System

WorkingTreeIterator() protected method

Create an iterator for a subtree of an existing iterator.
protected WorkingTreeIterator ( WorkingTreeIterator parent ) : System
parent WorkingTreeIterator Parent tree iterator.
return System

WorkingTreeIterator() protected method

Create a new iterator with no parent and a prefix. The prefix path supplied is inserted in front of all paths generated by this iterator. It is intended to be used when an iterator is being created for a subsection of an overall repository and needs to be combined with other iterators that are created to run over the entire repository namespace.
protected WorkingTreeIterator ( string prefix ) : System
prefix string /// Position of this iterator in the repository tree. The value /// may be null or the empty string to indicate the prefix is the /// root of the repository. A trailing slash ('/') is /// automatically appended if the prefix does not end in '/'. ///
return System

back() public method

public back ( int delta ) : void
delta int
return void

eof() public method

public eof ( ) : bool
return bool

first() public method

public first ( ) : bool
return bool

getEntryLastModified() public method

Get the last modified time of this entry.
public getEntryLastModified ( ) : long
return long

getEntryLength() public method

Get the byte Length of this entry.
public getEntryLength ( ) : long
return long

idBuffer() public method

public idBuffer ( ) : byte[]
return byte[]

idOffset() public method

public idOffset ( ) : int
return int

next() public method

public next ( int delta ) : void
delta int
return void

Property Details

Eof protected static property

An empty entry array, suitable for Init.
protected static Entry[] Eof
return Entry[]