root / trunk / libraries / libGPE / src / org / gvsig / gpe / writers / GPEWriterHandler.java @ 11203
History | View | Annotate | Download (4.8 KB)
1 |
package org.gvsig.gpe.writers; |
---|---|
2 |
|
3 |
import java.io.File; |
4 |
|
5 |
import org.gvsig.gpe.GPEErrorHandler; |
6 |
import org.gvsig.gpe.IGPEContentHandler; |
7 |
import org.xml.sax.ErrorHandler; |
8 |
|
9 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
|
10 |
*
|
11 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
|
12 |
*
|
13 |
* This program is free software; you can redistribute it and/or
|
14 |
* modify it under the terms of the GNU General Public License
|
15 |
* as published by the Free Software Foundation; either version 2
|
16 |
* of the License, or (at your option) any later version.
|
17 |
*
|
18 |
* This program is distributed in the hope that it will be useful,
|
19 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
20 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
21 |
* GNU General Public License for more details.
|
22 |
*
|
23 |
* You should have received a copy of the GNU General Public License
|
24 |
* along with this program; if not, write to the Free Software
|
25 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.
|
26 |
*
|
27 |
* For more information, contact:
|
28 |
*
|
29 |
* Generalitat Valenciana
|
30 |
* Conselleria d'Infraestructures i Transport
|
31 |
* Av. Blasco Ib??ez, 50
|
32 |
* 46010 VALENCIA
|
33 |
* SPAIN
|
34 |
*
|
35 |
* +34 963862235
|
36 |
* gvsig@gva.es
|
37 |
* www.gvsig.gva.es
|
38 |
*
|
39 |
* or
|
40 |
*
|
41 |
* IVER T.I. S.A
|
42 |
* Salamanca 50
|
43 |
* 46005 Valencia
|
44 |
* Spain
|
45 |
*
|
46 |
* +34 963163400
|
47 |
* dac@iver.es
|
48 |
*/
|
49 |
/* CVS MESSAGES:
|
50 |
*
|
51 |
* $Id: GPEWriterHandler.java 11203 2007-04-13 13:14:55Z jorpiell $
|
52 |
* $Log$
|
53 |
* Revision 1.2 2007-04-13 13:14:55 jorpiell
|
54 |
* Created the base tests and add some methods to the content handler
|
55 |
*
|
56 |
* Revision 1.1 2007/04/13 07:17:54 jorpiell
|
57 |
* Add the writting tests for the simple geometries
|
58 |
*
|
59 |
* Revision 1.2 2007/04/12 17:06:42 jorpiell
|
60 |
* First GML writing tests
|
61 |
*
|
62 |
* Revision 1.1 2007/04/12 10:20:40 jorpiell
|
63 |
* Add the writer
|
64 |
*
|
65 |
*
|
66 |
*/
|
67 |
/**
|
68 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es)
|
69 |
*/
|
70 |
public abstract class GPEWriterHandler implements IGPEWriterHandler{ |
71 |
private String format = null; |
72 |
private File file = null; |
73 |
private GPEErrorHandler errorHandler = null; |
74 |
|
75 |
public GPEWriterHandler(String format,File file,GPEErrorHandler errorHandler){ |
76 |
this.format = format;
|
77 |
this.file = file;
|
78 |
this.errorHandler = errorHandler;
|
79 |
} |
80 |
|
81 |
/**
|
82 |
* @return the errorHandler
|
83 |
*/
|
84 |
public GPEErrorHandler getErrorHandler() {
|
85 |
return errorHandler;
|
86 |
} |
87 |
|
88 |
public void close() { |
89 |
// TODO Auto-generated method stub
|
90 |
|
91 |
} |
92 |
|
93 |
public void endBbox() { |
94 |
// TODO Auto-generated method stub
|
95 |
|
96 |
} |
97 |
|
98 |
public void endElement() { |
99 |
// TODO Auto-generated method stub
|
100 |
|
101 |
} |
102 |
|
103 |
public void endInnerBoundary() { |
104 |
// TODO Auto-generated method stub
|
105 |
|
106 |
} |
107 |
|
108 |
public void endLayer() { |
109 |
// TODO Auto-generated method stub
|
110 |
|
111 |
} |
112 |
|
113 |
public void endLineString() { |
114 |
// TODO Auto-generated method stub
|
115 |
|
116 |
} |
117 |
|
118 |
public void endLinearRing() { |
119 |
// TODO Auto-generated method stub
|
120 |
|
121 |
} |
122 |
|
123 |
public void endPoint() { |
124 |
// TODO Auto-generated method stub
|
125 |
|
126 |
} |
127 |
|
128 |
public void endPolygon() { |
129 |
// TODO Auto-generated method stub
|
130 |
|
131 |
} |
132 |
|
133 |
public void initialize() { |
134 |
// TODO Auto-generated method stub
|
135 |
|
136 |
} |
137 |
|
138 |
public void startBbox(String id, double[] x, double[] y, double[] z, String srs) { |
139 |
// TODO Auto-generated method stub
|
140 |
|
141 |
} |
142 |
|
143 |
public void startElement(String name, Object value, Object type) { |
144 |
// TODO Auto-generated method stub
|
145 |
|
146 |
} |
147 |
|
148 |
public void startInnerBoundary(String id, double[] x, double[] y, double[] z, String srs) { |
149 |
// TODO Auto-generated method stub
|
150 |
|
151 |
} |
152 |
|
153 |
public void startLayer(String id, String name, String description, String srs) { |
154 |
// TODO Auto-generated method stub
|
155 |
|
156 |
} |
157 |
|
158 |
public void startLineString(String id, double[] x, double[] y, double[] z, String srs) { |
159 |
// TODO Auto-generated method stub
|
160 |
|
161 |
} |
162 |
|
163 |
public void startLinearRing(String id, double[] x, double[] y, double[] z, String srs) { |
164 |
// TODO Auto-generated method stub
|
165 |
|
166 |
} |
167 |
|
168 |
public void startPoint(String id, double x, double y, double z, String srs) { |
169 |
// TODO Auto-generated method stub
|
170 |
|
171 |
} |
172 |
|
173 |
public void startPolygon(String id, double[] x, double[] y, double[] z, String srs) { |
174 |
// TODO Auto-generated method stub
|
175 |
|
176 |
} |
177 |
|
178 |
public void endFeature() { |
179 |
// TODO Auto-generated method stub
|
180 |
|
181 |
} |
182 |
|
183 |
public void startFeature(String name, String id) { |
184 |
// TODO Auto-generated method stub
|
185 |
|
186 |
} |
187 |
|
188 |
/**
|
189 |
* @return the file
|
190 |
*/
|
191 |
public File getFile() { |
192 |
return file;
|
193 |
} |
194 |
|
195 |
/**
|
196 |
* @return the format
|
197 |
*/
|
198 |
public String getFormat() { |
199 |
return format;
|
200 |
} |
201 |
|
202 |
public void endMuliPoint() { |
203 |
// TODO Auto-generated method stub
|
204 |
|
205 |
} |
206 |
|
207 |
public void endMultiLineString() { |
208 |
// TODO Auto-generated method stub
|
209 |
|
210 |
} |
211 |
|
212 |
public void endMultiPolygon() { |
213 |
// TODO Auto-generated method stub
|
214 |
|
215 |
} |
216 |
|
217 |
public void startMultiLineString(String id, String srs) { |
218 |
// TODO Auto-generated method stub
|
219 |
|
220 |
} |
221 |
|
222 |
public void startMultiPoint(String id, String srs) { |
223 |
// TODO Auto-generated method stub
|
224 |
|
225 |
} |
226 |
|
227 |
public void startMultiPolygon(String id, String srs) { |
228 |
// TODO Auto-generated method stub
|
229 |
|
230 |
} |
231 |
|
232 |
} |