public class Annotations extends java.lang.Object implements ISVNAnnotations
ISVNAnnotations
interface.
It's expected to be filled with annotation data by
addAnnotation(Annotations.Annotation)
method.Modifier and Type | Class and Description |
---|---|
protected static class |
Annotations.AnnotateInputStream |
static class |
Annotations.Annotation
Class represeting one line of the annotations, i.e. an annotation record
|
Constructor and Description |
---|
Annotations() |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(Annotations.Annotation annotation)
Append the given annotation record the list of annotation
|
protected Annotations.Annotation |
getAnnotation(int i) |
java.lang.String |
getAuthor(int lineNumber)
Get the author of the last change for the given
lineNumber |
java.util.Date |
getChanged(int lineNumber)
Get the date of the last change for the given
lineNumber |
java.io.InputStream |
getInputStream()
Get an input stream providing the content of the file being annotated.
|
java.lang.String |
getLine(int lineNumber)
Get the content (line itself) of the given
lineNumber |
long |
getRevision(int lineNumber)
Get the revision of the last change for the given
lineNumber |
int |
numberOfLines()
Get the number of annotated lines
|
protected Annotations.Annotation getAnnotation(int i)
public void addAnnotation(Annotations.Annotation annotation)
annotation
- public long getRevision(int lineNumber)
ISVNAnnotations
lineNumber
getRevision
in interface ISVNAnnotations
public java.lang.String getAuthor(int lineNumber)
ISVNAnnotations
lineNumber
getAuthor
in interface ISVNAnnotations
public java.util.Date getChanged(int lineNumber)
ISVNAnnotations
lineNumber
getChanged
in interface ISVNAnnotations
public java.lang.String getLine(int lineNumber)
ISVNAnnotations
lineNumber
getLine
in interface ISVNAnnotations
public java.io.InputStream getInputStream()
ISVNAnnotations
getInputStream
in interface ISVNAnnotations
public int numberOfLines()
ISVNAnnotations
numberOfLines
in interface ISVNAnnotations