public class FeatureSerializer
extends java.lang.Object
要素序列化器,将要素内容序列化为 KML。
构造器和说明 |
---|
FeatureSerializer() |
限定符和类型 | 方法和说明 |
---|---|
protected java.lang.String |
getFieldValue(java.lang.String name, Feature content) |
void |
serialize(KMLObject object, java.io.Writer writer)
将要素内容序列化为 KML。
|
protected void |
writeGeometry(XMLRecord record, Geometry geometry) |
protected void |
writePoint(XMLRecord record, Geometry geometry) |
public void serialize(KMLObject object, java.io.Writer writer)
将要素内容序列化为 KML。
object
- 需要序列化的对象。writer
- 序列化后的写入字符流。protected java.lang.String getFieldValue(java.lang.String name, Feature content)
protected void writeGeometry(XMLRecord record, Geometry geometry)
protected void writePoint(XMLRecord record, Geometry geometry)