Revision 11300 trunk/libraries/libGPE-KML/src/org/gvsig/gpe/kml/writer/features/FolderWriter.java

View differences:

FolderWriter.java
49 49
 *
50 50
 * $Id$
51 51
 * $Log$
52
 * Revision 1.1  2007-04-14 16:08:07  jorpiell
52
 * Revision 1.2  2007-04-20 08:38:59  jorpiell
53
 * Tests updating
54
 *
55
 * Revision 1.1  2007/04/14 16:08:07  jorpiell
53 56
 * Kml writing support added
54 57
 *
55 58
 *
......
59 62
 */
60 63
public class FolderWriter {
61 64
	
62
	public static void start(Writer writer,String name, String description) throws IOException{
63
		writer.write("\n");
64
		writer.write("<" + KmlTags.FOLDER + ">");
65
	public static void start(Writer writer,String id, String name, String description) throws IOException{
66
		AFeatureWriter.start(writer, id, KmlTags.FOLDER);
65 67
		if (name != null){
66 68
			NameWriter.write(writer, name);
67 69
		}
......
71 73
	}
72 74
	
73 75
	public static void end(Writer writer) throws IOException{
74
		writer.write("\n");
75
		writer.write("</" + KmlTags.FOLDER + ">");
76
		AFeatureWriter.end(writer, KmlTags.FOLDER);
76 77
	}
77 78
}

Also available in: Unified diff