svn-gvsig-desktop / tags / Root_CqCMSGisPlanet / libraries / libCq CMS for java.old / src / org / cresques / io / FileFolder.java @ 1933
History | View | Annotate | Download (658 Bytes)
1 |
/*
|
---|---|
2 |
* Created on 03-may-2004
|
3 |
*
|
4 |
* @author "Luis W. Sevilla" <sevilla_lui@gva.es>
|
5 |
*/
|
6 |
|
7 |
package org.cresques.io; |
8 |
|
9 |
/**
|
10 |
*
|
11 |
* @author "Luis W. Sevilla" <sevilla_lui@gva.es>* @author administrador
|
12 |
*/
|
13 |
|
14 |
abstract public class FileFolder { |
15 |
abstract public int count(); |
16 |
static String [] supportedFolders = { |
17 |
"zip://"
|
18 |
}; |
19 |
|
20 |
/**
|
21 |
* Analiza un nombre de fichero en formato zip://zipname.zip?file.ext
|
22 |
* @param urlName
|
23 |
*/
|
24 |
|
25 |
public static boolean isUrl(String name) { |
26 |
String str = name.substring(0,6); |
27 |
str.toLowerCase(); |
28 |
for (int i=0; i<supportedFolders.length; i++) |
29 |
if (str.compareTo(supportedFolders[i]) == 0) |
30 |
return true; |
31 |
return false; |
32 |
} |
33 |
} |