ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/java/SVNAccess/src/net/oni2/svnaccess/DirEntryHandler.java
Revision: 732
Committed: Thu Mar 21 17:26:44 2013 UTC (12 years, 6 months ago) by alloc
Content type: text/x-java
File size: 836 byte(s)
Log Message:
SVN access library

File Contents

# Content
1 package net.oni2.svnaccess;
2
3 import java.util.Vector;
4
5 import org.tmatesoft.svn.core.ISVNDirEntryHandler;
6 import org.tmatesoft.svn.core.SVNDirEntry;
7 import org.tmatesoft.svn.core.SVNException;
8 import org.tmatesoft.svn.core.SVNNodeKind;
9
10
11 /**
12 * Used to get the files in a SVN repository
13 *
14 * @author Christian Illy
15 */
16 public class DirEntryHandler implements ISVNDirEntryHandler {
17
18 Vector<String> target;
19
20
21 /**
22 * Create a new DirEntryHandler with a list to store the found files in.
23 *
24 * @param targetList
25 * Vector used to store the file names
26 */
27 public DirEntryHandler(Vector<String> targetList) {
28 this.target = targetList;
29 }
30
31 @Override
32 public void handleDirEntry(SVNDirEntry dirEntry) throws SVNException {
33 if (dirEntry.getKind() == SVNNodeKind.FILE)
34 target.add(dirEntry.getURL().getPath());
35 }
36
37 }