View Javadoc

1   package net.sf.statsvn.util;
2   
3   import java.io.IOException;
4   import java.util.List;
5   
6   /**
7    * 
8    * Performs svn propget queries. 
9    * 
10   * @author jkealey
11   *
12   */
13  public interface ISvnPropgetProcessor {
14  
15      /**
16       * Returns the list of binary files in the working directory.
17       * 
18       * @return the list of binary files
19       */
20      public abstract List getBinaryFiles();
21  
22      /**
23       * It was first thought that a the mime-type of a file's previous revision
24       * could be found. This is not the case. Leave revision null until future
25       * upgrade of svn propget command line.
26       * 
27       * @param revision
28       *            the revision to query
29       * @param filename
30       *            the filename
31       * @return if that version of a file is binary
32       */
33      public abstract boolean isBinaryFile(final String revision, final String filename);
34  
35      
36      /**
37       * Loads the list of binary files from the input stream equivalent to an svn
38       * propget command.
39       * 
40       * @param path
41       *            a file on disk which contains the results of an svn propget
42       */ 
43      public void loadBinaryFiles(final String path) throws IOException;
44  }