Revision 19366 trunk/libraries/libGPE-GML/src/org/gvsig/gpe/xml/writer/GPEXmlWriterHandlerImplementor.java
GPEXmlWriterHandlerImplementor.java | ||
---|---|---|
14 | 14 |
import java.util.zip.ZipOutputStream; |
15 | 15 |
|
16 | 16 |
import org.gvsig.gpe.GPEDefaults; |
17 |
import org.gvsig.gpe.gml.GMLTags; |
|
17 |
import org.gvsig.gpe.gml.utils.GMLTags;
|
|
18 | 18 |
import org.gvsig.gpe.writers.GPEWriterHandlerImplementor; |
19 | 19 |
import org.gvsig.gpe.xml.exceptions.GPEXmlToZipFileException; |
20 | 20 |
import org.gvsig.xmlschema.som.IXSSchema; |
... | ... | |
105 | 105 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
106 | 106 |
*/ |
107 | 107 |
public abstract class GPEXmlWriterHandlerImplementor extends GPEWriterHandlerImplementor { |
108 |
protected Writer writer = null; |
|
108 |
protected IWriter writer = null;
|
|
109 | 109 |
private String targetNamespace = null; |
110 | 110 |
private String targetNamespacePrefix = null; |
111 | 111 |
|
... | ... | |
121 | 121 |
if (getOutputStream() == null){ |
122 | 122 |
writer = createWriter(); |
123 | 123 |
}else{ |
124 |
writer = new Writer(getOutputStream()); |
|
124 |
writer = new OutputStreamWriter(getOutputStream());
|
|
125 | 125 |
} |
126 | 126 |
writer.write("<?xml version=\""); |
127 | 127 |
writer.write(GPEDefaults.getStringProperty(GPEDefaults.XML_VERSION).toString()); |
... | ... | |
137 | 137 |
* @throws FileNotFoundException |
138 | 138 |
* @throws FileNotFoundException |
139 | 139 |
*/ |
140 |
protected abstract Writer createWriter() throws IOException; |
|
140 |
protected abstract IWriter createWriter() throws IOException;
|
|
141 | 141 |
|
142 | 142 |
/** |
143 | 143 |
* @return the schemaLocation tag |
Also available in: Unified diff