|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jgit.diff.ContentSource.Pair
public static final class ContentSource.Pair
A pair of sources to access the old and new sides of a DiffEntry.
Constructor Summary | |
---|---|
ContentSource.Pair(ContentSource oldSource,
ContentSource newSource)
Construct a pair of sources. |
Method Summary | |
---|---|
ObjectLoader |
open(DiffEntry.Side side,
DiffEntry ent)
Open the object. |
long |
size(DiffEntry.Side side,
DiffEntry ent)
Determine the size of the object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentSource.Pair(ContentSource oldSource, ContentSource newSource)
oldSource
- source to read the old side of a DiffEntry.newSource
- source to read the new side of a DiffEntry.Method Detail |
---|
public long size(DiffEntry.Side side, DiffEntry ent) throws IOException
side
- which side of the entry to read (OLD or NEW).ent
- the entry to examine.
IOException
- the file cannot be accessed.public ObjectLoader open(DiffEntry.Side side, DiffEntry ent) throws IOException
side
- which side of the entry to read (OLD or NEW).ent
- the entry to examine.
IOException
- the file cannot be accessed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |