|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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.EntryNote: 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.EntryFileMode.public String getName()
WorkingTreeIterator.EntryEfficient implementations are not required. The caller will obtain the name only once and cache it once obtained.
getName in class WorkingTreeIterator.Entrypublic long getLength()
WorkingTreeIterator.EntryNote: 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.Entrypublic long getLastModified()
WorkingTreeIterator.EntryNote: 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.EntryEfficient 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.EntryIOException - 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 | |||||||||