Revision 11621 trunk/libraries/libGPE-GML/src/org/gvsig/gpe/gml/writer/geometries/BoundedByWriter.java
BoundedByWriter.java | ||
---|---|---|
1 | 1 |
package org.gvsig.gpe.gml.writer.geometries; |
2 | 2 |
|
3 | 3 |
import java.io.IOException; |
4 |
|
|
5 |
import org.gvsig.gpe.GPEErrorHandler; |
|
4 | 6 |
import org.gvsig.gpe.xml.writer.Writer; |
5 | 7 |
|
6 | 8 |
import org.gvsig.gpe.gml.GMLTags; |
... | ... | |
49 | 51 |
* |
50 | 52 |
* $Id$ |
51 | 53 |
* $Log$ |
52 |
* Revision 1.4 2007-05-08 10:24:16 jorpiell |
|
54 |
* Revision 1.5 2007-05-14 11:18:12 jorpiell |
|
55 |
* Add the ErrorHandler to all the methods |
|
56 |
* |
|
57 |
* Revision 1.4 2007/05/08 10:24:16 jorpiell |
|
53 | 58 |
* Add comments to create javadocs |
54 | 59 |
* |
55 | 60 |
* Revision 1.3 2007/04/14 16:07:30 jorpiell |
... | ... | |
85 | 90 |
* It writes a gml:BoundedBy init tag |
86 | 91 |
* @param writer |
87 | 92 |
* Writer to write the labels |
93 |
* @param errorHandler |
|
94 |
* To add the errors |
|
88 | 95 |
* @param id |
89 | 96 |
* Geometry ID |
90 | 97 |
* @param x |
... | ... | |
97 | 104 |
* Spatial reference system |
98 | 105 |
* @throws IOException |
99 | 106 |
*/ |
100 |
public static void start(Writer writer, String id, double[] x, double[] y, |
|
107 |
public static void start(Writer writer, GPEErrorHandler errorHandler, String id, double[] x, double[] y,
|
|
101 | 108 |
double[] z, String srs) throws IOException{ |
102 | 109 |
writer.write("\n"); |
103 | 110 |
writer.write("<" + GMLTags.GML_NAMESPACE + ":" + GMLTags.GML_BOUNDEDBY + ">"); |
104 |
BoxWriter.start(writer, id, x, y, z, srs); |
|
111 |
BoxWriter.start(writer, errorHandler, id, x, y, z, srs);
|
|
105 | 112 |
} |
106 | 113 |
|
107 | 114 |
/** |
108 | 115 |
* It writes a gml:BoundedBy end tag |
109 | 116 |
* @param writer |
110 | 117 |
* Writer to write the labels |
118 |
* @param errorHandler |
|
119 |
* To add the errors |
|
111 | 120 |
* @throws IOException |
112 | 121 |
*/ |
113 |
public static void end(Writer writer) throws IOException{ |
|
114 |
BoxWriter.end(writer); |
|
122 |
public static void end(Writer writer, GPEErrorHandler errorHandler) throws IOException{
|
|
123 |
BoxWriter.end(writer,errorHandler);
|
|
115 | 124 |
writer.write("\n"); |
116 | 125 |
writer.write("</" + GMLTags.GML_NAMESPACE + ":" + GMLTags.GML_BOUNDEDBY + ">"); |
117 | 126 |
} |
Also available in: Unified diff