|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jgit.treewalk.WorkingTreeIterator.Entry
protected abstract static class WorkingTreeIterator.Entry
A single entry within a working directory tree.
Constructor Summary | |
---|---|
protected |
WorkingTreeIterator.Entry()
|
Method Summary | |
---|---|
abstract long |
getLastModified()
Get the last modified time of this entry. |
abstract long |
getLength()
Get the byte length of this entry. |
abstract FileMode |
getMode()
Get the type of this entry. |
abstract String |
getName()
Get the name of this entry within its directory. |
abstract InputStream |
openInputStream()
Obtain an input stream to read the file content. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected WorkingTreeIterator.Entry()
Method Detail |
---|
public String toString()
toString
in class Object
public abstract FileMode getMode()
Note: Efficient implementation required.
The implementation of this method must be efficient. If a subclass needs to compute the value they should cache the reference within an instance member instead.
FileMode
.public abstract long getLength()
Note: Efficient implementation required.
The implementation of this method must be efficient. If a subclass needs to compute the value they should cache the reference within an instance member instead.
public abstract long getLastModified()
Note: Efficient implementation required.
The implementation of this method must be efficient. If a subclass needs to compute the value they should cache the reference within an instance member instead.
public abstract String getName()
Efficient implementations are not required. The caller will obtain the name only once and cache it once obtained.
public abstract InputStream openInputStream() throws IOException
Efficient implementations are not required. The caller will usually obtain the stream only once per entry, if at all.
The input stream should not use buffering if the implementation can avoid it. The caller will buffer as necessary to perform efficient block IO operations.
The caller will close the stream once complete.
IOException
- the file could not be opened for reading.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |