Revision 11484 trunk/libraries/libGPE-KML/src/org/gvsig/gpe/kml/writer/features/NameWriter.java
NameWriter.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-05-08 07:53:08 jorpiell |
|
53 |
* Add comments to the writers |
|
54 |
* |
|
55 |
* Revision 1.1 2007/04/14 16:08:07 jorpiell |
|
53 | 56 |
* Kml writing support added |
54 | 57 |
* |
55 | 58 |
* |
56 | 59 |
*/ |
57 |
/** |
|
60 |
/** This class writes name tag. Example: |
|
61 |
* <p> |
|
62 |
* <pre> |
|
63 |
* <code> |
|
64 |
* <gml:name>GML tag name</gml:name> |
|
65 |
* </code> |
|
66 |
* </pre> |
|
67 |
* </p> |
|
58 | 68 |
* @author Jorge Piera LLodr? (jorge.piera@iver.es) |
69 |
* @see http://code.google.com/apis/kml/documentation/kml_tags_21.html#name |
|
59 | 70 |
*/ |
60 | 71 |
public class NameWriter { |
61 | 72 |
|
73 |
/** |
|
74 |
* Writes the name tag and its value |
|
75 |
* @param writer |
|
76 |
* Writer to write the labels |
|
77 |
* @param name |
|
78 |
* The name value |
|
79 |
* @throws IOException |
|
80 |
*/ |
|
62 | 81 |
public static void write(Writer writer,String name) throws IOException{ |
63 | 82 |
writer.write("\n"); |
64 | 83 |
writer.write("<" + KmlTags.NAME + ">"); |
Also available in: Unified diff