Revision 11171 trunk/libraries/libGPE/src/org/gvsig/gpe/GPERegister.java
GPERegister.java | ||
---|---|---|
48 | 48 |
* |
49 | 49 |
* $Id$ |
50 | 50 |
* $Log$ |
51 |
* Revision 1.3 2007-04-11 11:10:27 jorpiell |
|
51 |
* Revision 1.4 2007-04-12 17:06:42 jorpiell |
|
52 |
* First GML writing tests |
|
53 |
* |
|
54 |
* Revision 1.3 2007/04/11 11:10:27 jorpiell |
|
52 | 55 |
* Cambiado el nombre de getDriver a GetParser |
53 | 56 |
* |
54 | 57 |
* Revision 1.2 2007/04/11 08:54:24 jorpiell |
... | ... | |
75 | 78 |
* Adds a new GPE parser |
76 | 79 |
* @param driver |
77 | 80 |
*/ |
78 |
private static void addGpeDriver(GPEParser parser){
|
|
81 |
public static void addGpeDriver(GPEParser parser){
|
|
79 | 82 |
parsers.add(parser); |
80 | 83 |
} |
81 | 84 |
|
... | ... | |
95 | 98 |
* @throws SecurityException |
96 | 99 |
* @throws IllegalArgumentException |
97 | 100 |
*/ |
98 |
private static void addGpeDriver(String className,
|
|
101 |
public static void addGpeDriver(String className,
|
|
99 | 102 |
GPEContentHandler contentHandler, |
100 | 103 |
GPEErrorHandler errorsHanlder) throws ClassNotFoundException, IllegalArgumentException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException{ |
101 | 104 |
Class [] args = {GPEContentHandler.class,GPEErrorHandler.class}; |
... | ... | |
117 | 120 |
* @return |
118 | 121 |
* true if the driver exists |
119 | 122 |
*/ |
120 |
private static boolean accept(File file){
|
|
123 |
public static boolean accept(File file){
|
|
121 | 124 |
for (int i=0 ; i<parsers.size() ; i++){ |
122 | 125 |
GPEParser parser = (GPEParser)parsers.get(i); |
123 | 126 |
if (parser.accept(file)){ |
... | ... | |
134 | 137 |
* @return |
135 | 138 |
* Null if the driver doesn't exist |
136 | 139 |
*/ |
137 |
private static GPEParser getParser(File file){
|
|
140 |
public static GPEParser getParser(File file){
|
|
138 | 141 |
for (int i=0 ; i<parsers.size() ; i++){ |
139 | 142 |
GPEParser parser = (GPEParser)parsers.get(i); |
140 | 143 |
if (parser.accept(file)){ |
Also available in: Unified diff