Class Annotations
- java.lang.Object
-
- org.tigris.subversion.svnclientadapter.Annotations
-
- All Implemented Interfaces:
ISVNAnnotations
public class Annotations extends java.lang.Object implements ISVNAnnotations
Generic implementation ofISVNAnnotationsinterface. It's expected to be filled with annotation data byaddAnnotation(Annotations.Annotation)method.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classAnnotations.AnnotateInputStreamstatic classAnnotations.AnnotationClass represeting one line of the annotations, i.e.
-
Constructor Summary
Constructors Constructor Description Annotations()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAnnotation(Annotations.Annotation annotation)Append the given annotation record the list of annotationprotected Annotations.AnnotationgetAnnotation(int i)java.lang.StringgetAuthor(int lineNumber)Get the author of the last change for the givenlineNumberjava.util.DategetChanged(int lineNumber)Get the date of the last change for the givenlineNumberjava.io.InputStreamgetInputStream()Get an input stream providing the content of the file being annotated.java.lang.StringgetLine(int lineNumber)Get the content (line itself) of the givenlineNumberlonggetRevision(int lineNumber)Get the revision of the last change for the givenlineNumberintnumberOfLines()Get the number of annotated lines
-
-
-
Method Detail
-
getAnnotation
protected Annotations.Annotation getAnnotation(int i)
-
addAnnotation
public void addAnnotation(Annotations.Annotation annotation)
Append the given annotation record the list of annotation- Parameters:
annotation-
-
getRevision
public long getRevision(int lineNumber)
Description copied from interface:ISVNAnnotationsGet the revision of the last change for the givenlineNumber- Specified by:
getRevisionin interfaceISVNAnnotations- Returns:
- the revision of last change
-
getAuthor
public java.lang.String getAuthor(int lineNumber)
Description copied from interface:ISVNAnnotationsGet the author of the last change for the givenlineNumber- Specified by:
getAuthorin interfaceISVNAnnotations- Returns:
- the author of last change or null
-
getChanged
public java.util.Date getChanged(int lineNumber)
Description copied from interface:ISVNAnnotationsGet the date of the last change for the givenlineNumber- Specified by:
getChangedin interfaceISVNAnnotations- Returns:
- date of last change
-
getLine
public java.lang.String getLine(int lineNumber)
Description copied from interface:ISVNAnnotationsGet the content (line itself) of the givenlineNumber- Specified by:
getLinein interfaceISVNAnnotations- Returns:
- the line content
-
getInputStream
public java.io.InputStream getInputStream()
Description copied from interface:ISVNAnnotationsGet an input stream providing the content of the file being annotated.- Specified by:
getInputStreamin interfaceISVNAnnotations- Returns:
- an inputstream of the content of the file
-
numberOfLines
public int numberOfLines()
Description copied from interface:ISVNAnnotationsGet the number of annotated lines- Specified by:
numberOfLinesin interfaceISVNAnnotations- Returns:
- number of lines of file being annotated
-
-