kmltransformerbase.java
来自「电子地图服务器,搭建自己的地图服务」· Java 代码 · 共 51 行
JAVA
51 行
package org.vfny.geoserver.wms.responses.map.kml;
import org.geotools.xml.transform.TransformerBase;
import org.xml.sax.ContentHandler;
/**
* Base class for kml transformers.
*
* @author Justin Deoliveira, The Open Planning Project, jdeolive@openplans.org
*
*/
public abstract class KMLTransformerBase extends TransformerBase {
/**
* standalone flag.
*/
boolean standAlone = true;
/**
* Sets flag controlling wether the transformer encodes the document as
* a standalone document, or as part of another kml document.
* <p>
* If <tt>standAlone</tt> is <code>true</code>, the transformer will wrap
* its content in <kml> tags.
* </p>
*
* @param standAlone <code>true</code> to set standalone, otherwise <code>false</code>
*/
public void setStandAlone(boolean standAlone) {
this.standAlone = standAlone;
}
/**
* Determines if the document is being encoded standalone.
*
* @see #setStandAlone(boolean)
*/
public boolean isStandAlone() {
return standAlone;
}
public abstract class KMLTranslatorSupport extends TranslatorSupport {
public KMLTranslatorSupport(ContentHandler contentHandler) {
super(contentHandler, null, null);
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?