summaryrefslogtreecommitdiff
path: root/src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileBrowser.java
diff options
context:
space:
mode:
authorguest <guest@f059d3a0-6783-47b7-97ff-1fe0bbf25129>2008-10-16 15:42:22 +0000
committerguest <guest@f059d3a0-6783-47b7-97ff-1fe0bbf25129>2008-10-16 15:42:22 +0000
commit62d1c9e1ef2a8ccf090759b44b5101a8f24c7a70 (patch)
tree101f06404971c42c7c8175b07af13d2390af66c7 /src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileBrowser.java
parent3302ba62a4160ee9a430bb44cadfde44483e572c (diff)
included yalpindexer in ant build script
git-svn-id: http://manut.eu/svn/yalp/trunk@17 f059d3a0-6783-47b7-97ff-1fe0bbf25129
Diffstat (limited to 'src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileBrowser.java')
-rw-r--r--src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileBrowser.java22
1 files changed, 1 insertions, 21 deletions
diff --git a/src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileBrowser.java b/src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileBrowser.java
index 2f2a3a5..d622eec 100644
--- a/src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileBrowser.java
+++ b/src/YalpInputs/YalpPGSqlInput/YalpPGSQLIndexer/FileBrowser.java
@@ -6,7 +6,6 @@
* http://www.eclipse.org/legal/cpl-v10.html
*
* Contributors: Manuel Traut and Volker Dahnke
- */
package YalpServer;
@@ -16,7 +15,6 @@ import java.io.Serializable;
import YalpInterfaces.*;
-/*
* Class FileBrowser
*
* <em>each Admin Client has his own FileBrowser, to browse through the
@@ -27,7 +25,6 @@ import YalpInterfaces.*;
* @version 0.6 14-12-2005<br>
*
* @see client.GUI.Browser
- */
public class FileBrowser {
@@ -36,10 +33,8 @@ public class FileBrowser {
private String userName;
private ArrayList<YalpFile> fileList;
- /* t.b.d. add some more types */
private String[] extensions = {".mp3",".mpg",".mpeg",".avi"};
-/*
* Constructor starts Browsing in startDir
*
* @param startdir
@@ -48,7 +43,6 @@ public class FileBrowser {
* of the Browser (IP of the Client)
* @param userName
* of the Admin using this browser
- */
public FileBrowser(String startdir, String owner,String userName) {
this.owner = owner;
@@ -58,47 +52,39 @@ public class FileBrowser {
this.fileList = new ArrayList<YalpFile>();
}
-/*
* returns owner of the browser
*
* @return String
* owner
- */
public String getOwner(){
return this.owner;
}
-/*
* returns user of the browser
*
* @return String
* user
- */
public String getUserName(){
return this.userName;
}
-/*
* returns list of all files in actual Folder
* (none recursive)
*
* @return ArrayList<YalpFile>
* list of all files
- */
public ArrayList<YalpFile> getFiles(){
return this.fileList;
}
-/*
* returns list of all files in actual Folder
* (recursive)
*
* @return ArrayList<YalpFile>
* list of all files
- */
public ArrayList<File> findAll() {
@@ -109,12 +95,10 @@ public class FileBrowser {
return ff.getFiles();
}
-/*
* change actual Folder
*
* @param dirName
* String dir to change to
- */
public void changeDir(String dirName) {
@@ -123,7 +107,6 @@ public class FileBrowser {
if(actualFile.isDirectory()) {
for ( File aFile : this.actualFile.listFiles() ) {
- /* add to fileList if extension is allowed or File is a Directory */
if (match(aFile.getName(), extensions) || aFile.isDirectory())
{
YalpFile tmp = new YalpFile();
@@ -136,11 +119,9 @@ public class FileBrowser {
}
}
-/*
* prints current directory out to console
*
* (for debugging)
- */
public void printActualDir(){
for(YalpFile one : this.fileList){
@@ -150,7 +131,6 @@ public class FileBrowser {
}
}
-/*
* checks if file extension matches or not
*
* @param s
@@ -159,7 +139,6 @@ public class FileBrowser {
* Array of allowed Extensions
* @return boolean
* true if yalp can handle this extension, else false
- */
private static boolean match( String s, String suffixes[] ) {
for ( String suffix : suffixes ) {
@@ -173,3 +152,4 @@ public class FileBrowser {
return false;
}
}
+*/