⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kmltransformerbase.java

📁 电子地图服务器,搭建自己的地图服务
💻 JAVA
字号:
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 &lt;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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -