vpftable.java

来自「openmap java写的开源数字地图程序. 用applet实现,可以像g」· Java 代码 · 共 50 行

JAVA
50
字号
// **********************************************************************// <copyright>//  BBN Technologies//  10 Moulton Street//  Cambridge, MA 02138//  (617) 873-8000// //  Copyright (C) BBNT Solutions LLC. All rights reserved.// </copyright>// **********************************************************************// $Source: /cvs/distapps/openmap/src/vpfservlet/WEB-INF/src/com/bbn/openmap/vpfservlet/VPFTable.java,v $// $Revision: 1.2.2.2 $ $Date: 2005/08/11 21:03:10 $ $Author: dietrick $// **********************************************************************package com.bbn.openmap.vpfservlet;import com.bbn.openmap.io.FormatException;import com.bbn.openmap.layer.vpf.DcwRecordFile;/** * Wrapper for DcwRecordFile objects, to give JSPs a way to interact * with them directly. */public class VPFTable {    private DcwRecordFile table;    public VPFTable() {}    public void setFile(String file) {        try {            if ((file == null) && (table != null)) {                table.close();                table = null;            }            if (file != null) {                table = new DcwRecordFile(file);            }        } catch (FormatException fe) {        }    }    public String getTablename() {        return (table == null) ? "default" : table.getTableName();    }    public String getDescription() {        return (table == null) ? "default" : table.getDescription();    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?