|
||||||||||
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 org.eclipse.jgit.treewalk.FileTreeIterator.FileEntry
public static class FileTreeIterator.FileEntry
Wrapper for a standard Java IO file
Method Summary | |
---|---|
File |
getFile()
Get the underlying file of this entry. |
long |
getLastModified()
Get the last modified time of this entry. |
long |
getLength()
Get the byte length of this entry. |
FileMode |
getMode()
Get the type of this entry. |
String |
getName()
Get the name of this entry within its directory. |
InputStream |
openInputStream()
Obtain an input stream to read the file content. |
Methods inherited from class org.eclipse.jgit.treewalk.WorkingTreeIterator.Entry |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public FileMode getMode()
WorkingTreeIterator.Entry
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.
getMode
in class WorkingTreeIterator.Entry
FileMode
.public String getName()
WorkingTreeIterator.Entry
Efficient implementations are not required. The caller will obtain the name only once and cache it once obtained.
getName
in class WorkingTreeIterator.Entry
public long getLength()
WorkingTreeIterator.Entry
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.
getLength
in class WorkingTreeIterator.Entry
public long getLastModified()
WorkingTreeIterator.Entry
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.
getLastModified
in class WorkingTreeIterator.Entry
public InputStream openInputStream() throws IOException
WorkingTreeIterator.Entry
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.
openInputStream
in class WorkingTreeIterator.Entry
IOException
- the file could not be opened for reading.public File getFile()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |