亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dcwcolumninfo.java

?? openmap java寫的開源數字地圖程序. 用applet實現,可以像google map 那樣放大縮小地圖.
?? JAVA
?? 第 1 頁 / 共 2 頁
字號:
// **********************************************************************// // <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/openmap/com/bbn/openmap/layer/vpf/DcwColumnInfo.java,v $// $Revision: 1.4.2.1 $ $Date: 2004/10/14 18:27:20 $ $Author: dietrick $// **********************************************************************package com.bbn.openmap.layer.vpf;import com.bbn.openmap.io.FormatException;import com.bbn.openmap.io.BinaryFile;import java.io.EOFException;/** * Encapsulate the information about a particular column in a vpf * table. This class can read both VPF V1 (MIL-STD-600006, dated 1992) * and VPF V2 (MIL-STD-2407, dated 1996, supercedees V1) */public class DcwColumnInfo {    /** the name of the column */    final private String columnName;    /** the fieldtype of the contained data */    final private char fieldType;    /** the number of values (-1 indicates variable) */    final private int numberOfElements;    /** the keytype (primary key, non-key, foreign key) */    final private char keyType;    /** optional text description of what the column is for */    final private String columnDescription;    /**     * optional table that provides descriptions of what the values in     * this column are     */    private String valueDescriptionTable = null;    /** name of the optional thematic index created for this column */    private String thematicIndexName = null;    /** name of the optional narrative table for this column */    private String narrativeTable = null;    /** VPF Column Type Constants */    public static final char VPF_COLUMN_TEXT = 'T';    public static final char VPF_COLUMN_TEXTL1 = 'L';    public static final char VPF_COLUMN_TEXTL2 = 'M';    public static final char VPF_COLUMN_TEXTL3 = 'N';    public static final char VPF_COLUMN_FLOAT = 'F';    public static final char VPF_COLUMN_DOUBLE = 'R';    public static final char VPF_COLUMN_SHORT = 'S';    public static final char VPF_COLUMN_INT = 'I';    public static final char VPF_COLUMN_FLOAT_2COORD = 'C';    public static final char VPF_COLUMN_DOUBLE_2COORD = 'B';    public static final char VPF_COLUMN_FLOAT_3COORD = 'Z';    public static final char VPF_COLUMN_DOUBLE_3COORD = 'Y';    public static final char VPF_COLUMN_DATE = 'D';    public static final char VPF_COLUMN_NULL = 'X';    public static final char VPF_COLUMN_TRIPLET = 'K';    /**     * VPF Column Type Constant for a column that can be either int or     * short. This value will never be read from a VPF file, its a     * special value that is accepted by lookupSchema     */    public static final char VPF_COLUMN_INT_OR_SHORT = 'i';    /** VPF Column Key Type Constants */    public static final char VPF_COLUMN_PRIMARY_KEY = 'P';    public static final char VPF_COLUMN_FOREIGN_KEY = 'F';    public static final char VPF_COLUMN_NON_KEY = 'N';    /**     * Construct a DcwColumnInfo from the specified input stream.     *      * @param inputFile the filestream to construct from     * @exception EOFException when the first character read is a ';',     *            indicating that we've reached the end of the column     *            list; also thrown for an end of file     * @exception FormatException some error was detected while     *            reading the info for the column.     */    public DcwColumnInfo(BinaryFile inputFile) throws EOFException,            FormatException {        char delim = inputFile.readChar();        if (delim == ';')            throw new EOFException();        StringBuffer buildstring = new StringBuffer();        do {            buildstring.append(Character.toLowerCase(delim));        } while ((delim = inputFile.readChar()) != '=');        columnName = buildstring.toString().intern();        fieldType = inputFile.readChar();        delim = inputFile.readChar();        if (delim != ',') { //only legal delimiter            if (delim != ' ') { //one DCW file uses this instead                throw new com.bbn.openmap.io.InvalidCharException("Illegal delimiter character", delim);            }        }        buildstring = new StringBuffer();        while ((delim = inputFile.readChar()) != ',') {            // field length occasionally has trailing whitespace...            if (!Character.isWhitespace(delim)) {                buildstring.append(delim); //assumes not like "1 4"            }        }        String nEls = buildstring.toString();        numberOfElements = (nEls.equals("*")) ? -1 : Integer.parseInt(nEls);        // Sanity check the column schema... a few VPF primitives are        // not        // allowed to show up in arrays. complain about that now...        if (numberOfElements != 1) {            switch (fieldType) {            case VPF_COLUMN_FLOAT:            case VPF_COLUMN_DOUBLE:            case VPF_COLUMN_SHORT:            case VPF_COLUMN_INT:            case VPF_COLUMN_DATE:            case VPF_COLUMN_NULL:            case VPF_COLUMN_TRIPLET:                throw new FormatException("Illegal array type: " + fieldType                        + "for column " + columnName);            default:                //legal                break;            }        }        String tmpkeyType = readColumnText(inputFile);        if (tmpkeyType == null) {            throw new FormatException("keyType is required column info");        }        tmpkeyType = tmpkeyType.trim();        if (tmpkeyType.length() == 1) {            keyType = tmpkeyType.charAt(0);        } else {            throw new FormatException("keyType is supposed to be 1 character");        }        columnDescription = readColumnText(inputFile);        if (columnDescription == null) {            return;        }        valueDescriptionTable = readColumnTextLowerCase(inputFile);        if (valueDescriptionTable == null) {            return;        }        if (valueDescriptionTable.equals("-")) {            valueDescriptionTable = null;        } else {            valueDescriptionTable = valueDescriptionTable.intern();        }        thematicIndexName = readColumnTextLowerCase(inputFile);        if (thematicIndexName == null) {            return;        }        if (thematicIndexName.equals("-")) {            thematicIndexName = null;        } else {            thematicIndexName = thematicIndexName.intern();        }        narrativeTable = readColumnTextLowerCase(inputFile);        if (narrativeTable == null) {            return;        }        if (narrativeTable.equals("-")) {            narrativeTable = null;        } else {            narrativeTable = narrativeTable.intern();        }        inputFile.assertChar(':');    }    /**     * Reads a string until the field separator is detected, the     * column record separator is detected, or and end-of-file is hit.     *      * @return the string read from the file     * @param inputFile the file to read the field from     * @param toLower convert the string to lower-case     * @exception FormatException ReadChar IOExceptions rethrown as     *            FormatExceptions     */    private String readColumnText(BinaryFile inputFile) throws FormatException {        StringBuffer buildretval = new StringBuffer();        boolean skipnext = false;        char tmp;        try {            while ((tmp = inputFile.readChar()) != ',') {                if ((tmp == ':') && !skipnext) {                    return null;                }                if (tmp == '\\') {                    skipnext = true;                } else {                    skipnext = false;                    buildretval.append(tmp);                }            }        } catch (EOFException e) {            //allowable        }        return buildretval.toString();    }    /**     * Reads a string until the field separator is detected, the     * column record separator is detected, or and end-of-file is hit,     * and converts in to lowercase.     *      * @return the string read from the file, all in lowercase     * @param inputFile the file to read the field from     * @param toLower convert the string to lower-case     * @exception FormatException ReadChar IOExceptions rethrown as     *            FormatExceptions     */    private String readColumnTextLowerCase(BinaryFile inputFile)            throws FormatException {        StringBuffer buildretval = new StringBuffer();        boolean skipnext = false;        char tmp;        try {            while ((tmp = inputFile.readChar()) != ',') {                if ((tmp == ':') && !skipnext) {                    return null;                }                if (tmp == '\\') {                    skipnext = true;                } else {                    skipnext = false;                    buildretval.append(Character.toLowerCase(tmp));                }            }        } catch (EOFException e) {            //allowable        }        return buildretval.toString();    }    /**     * Claim that the column has a particular schema     *      * @param type the FieldType (datatype) this column is expected to     *        contain legal values are specified by the VPF standard.     *        the non-standard value 'i' is also accepted (equivalent     *        to 'I' or 'S'), indicating an integral type.     * @param length the number of elements in this column     * @param strictlength false means that variable length columns     *        can be fixed length instead     * @exception FormatException the column is not of the particular     *            type/length     */    public void assertSchema(char type, int length, boolean strictlength)            throws FormatException {        if ((type != fieldType)                && !((type == 'i') && ((fieldType == VPF_COLUMN_INT) || (fieldType == VPF_COLUMN_SHORT)))) {            throw new FormatException("AssertSchema failed on fieldType!");        }        if ((strictlength && (length != numberOfElements))                || (!strictlength && (length != -1) && (length != numberOfElements))) {            throw new FormatException("AssertSchema failed on length!");        }    }    /**     * the number of bytes a field of this type takes in the input     * file     *      * @return the number of bytes (-1 for a variable-length field)     * @exception FormatException the FieldType of this Column is not     *            a valid VPF fieldtype     */    public int fieldLength() throws FormatException {        if (numberOfElements == -1) {            return -1;        }        switch (fieldType) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美色图在线观看| 精品国产亚洲一区二区三区在线观看 | 国产一区二区三区美女| 日韩视频免费观看高清完整版| 日韩不卡免费视频| 91精品免费观看| 国产精一区二区三区| 国产农村妇女精品| 91啪亚洲精品| 亚洲一区二区偷拍精品| 欧美日本乱大交xxxxx| 日韩av中文在线观看| 精品久久人人做人人爱| 成人一区二区三区在线观看 | 91免费视频观看| 亚洲一区二区三区不卡国产欧美 | 狂野欧美性猛交blacked| 久久综合给合久久狠狠狠97色69| 国产不卡视频一区| 亚洲黄一区二区三区| 欧美久久久久久久久中文字幕| 卡一卡二国产精品 | 欧美日韩一卡二卡三卡| 亚洲国产精品影院| 欧美裸体一区二区三区| 国产一区二区三区电影在线观看| 国产精品久久免费看| 精品婷婷伊人一区三区三| 性久久久久久久| 91精品国产一区二区| 国产精品18久久久| 亚洲福利电影网| 中文乱码免费一区二区| 欧洲激情一区二区| 国产裸体歌舞团一区二区| 伊人婷婷欧美激情| 欧美成人国产一区二区| 91同城在线观看| 精品在线你懂的| 亚洲成人自拍偷拍| 一色屋精品亚洲香蕉网站| 欧美日韩第一区日日骚| 成人小视频免费在线观看| 日本伊人午夜精品| 国产精品久久久久久福利一牛影视| 91精品国产综合久久久久| 成人免费毛片嘿嘿连载视频| 免费欧美在线视频| 亚洲日本丝袜连裤袜办公室| 久久久久亚洲蜜桃| 欧美高清你懂得| 色网站国产精品| 国产91精品入口| 国产一区二区三区四| 三级成人在线视频| 亚洲精品国产无天堂网2021| 国产亚洲精品7777| 欧美一二三区精品| 欧美群妇大交群中文字幕| 91蝌蚪porny| 9l国产精品久久久久麻豆| 国产精品亚洲专一区二区三区| 香蕉乱码成人久久天堂爱免费| 国产精品久久久久久久午夜片| 精品美女被调教视频大全网站| 欧美老女人在线| 欧美在线观看禁18| 91亚洲国产成人精品一区二三| 国产91精品露脸国语对白| 国产综合成人久久大片91| 久久99热99| 国产一区二区三区综合| 国产综合色在线视频区| 蜜桃精品视频在线观看| 蜜桃av一区二区| 乱中年女人伦av一区二区| 人人爽香蕉精品| 日本成人超碰在线观看| 日本不卡高清视频| 另类小说欧美激情| 美女诱惑一区二区| 韩国女主播成人在线| 韩国精品免费视频| 国产乱码精品一品二品| 国产乱淫av一区二区三区 | 亚洲三级小视频| 亚洲精品视频一区| 亚洲一区二区三区视频在线播放 | 狠狠色丁香九九婷婷综合五月| 日av在线不卡| 国产一区二区伦理| 成人精品免费视频| 91精彩视频在线观看| 欧美日韩在线一区二区| 欧美精品高清视频| 日韩久久精品一区| 久久精品视频在线看| 中文字幕av一区 二区| 亚洲人成网站影音先锋播放| 亚洲综合免费观看高清在线观看| 亚洲成人资源在线| 久久99国产乱子伦精品免费| 国产福利一区在线| 色94色欧美sute亚洲13| 在线成人av网站| 久久久激情视频| 亚洲精品网站在线观看| 欧美a级一区二区| 国产成人精品一区二| 日本久久精品电影| 日韩女优av电影| 国产精品久线在线观看| 亚洲va国产va欧美va观看| 另类欧美日韩国产在线| 不卡的av中国片| 欧美日本一区二区| 国产欧美日韩三级| 亚洲高清不卡在线观看| 国产精品综合二区| 精品视频在线免费看| 久久综合给合久久狠狠狠97色69| 亚洲欧美日韩国产中文在线| 免费成人在线观看| av成人免费在线观看| 欧美伦理电影网| 国产精品免费av| 日本免费新一区视频| 成人美女视频在线观看18| 欧美片在线播放| 国产精品久久久久影院| 蜜臀国产一区二区三区在线播放| 在线区一区二视频| 久久精品视频在线看| 午夜精品久久久久久久久久久| 成人动漫精品一区二区| 欧美一级在线观看| 亚洲综合图片区| av电影在线观看不卡| 精品电影一区二区| 秋霞午夜av一区二区三区| 99久久99久久精品国产片果冻| 精品欧美一区二区在线观看| 亚洲色图第一区| 在线亚洲人成电影网站色www| 亚洲欧美乱综合| 成人一级视频在线观看| 久久这里只有精品视频网| 天天免费综合色| 欧美理论电影在线| 亚洲 欧美综合在线网络| 久久色成人在线| 精品影视av免费| 亚洲欧美福利一区二区| 欧美专区在线观看一区| 欧美美女直播网站| 亚洲美女偷拍久久| 国产98色在线|日韩| 亚洲欧美偷拍卡通变态| 91麻豆精东视频| 色成人在线视频| 91麻豆精品国产91久久久久久| 欧美日韩另类一区| 欧美军同video69gay| 亚洲欧美日韩国产中文在线| 成人午夜电影网站| 国产日韩欧美在线一区| 国产一区二区三区高清播放| 欧美va在线播放| 蜜桃av一区二区| 精品三级在线看| 狠狠色丁香婷综合久久| 久久日韩粉嫩一区二区三区| 狠狠久久亚洲欧美| 国产日韩欧美精品一区| 国产精品一色哟哟哟| 国产色一区二区| 成熟亚洲日本毛茸茸凸凹| 国产精品久久久久久久午夜片| www.视频一区| 亚洲日本丝袜连裤袜办公室| 在线看一区二区| 婷婷久久综合九色综合绿巨人| 欧美日韩成人在线| 美国欧美日韩国产在线播放| 精品日产卡一卡二卡麻豆| 国产精品亚洲第一区在线暖暖韩国| 久久久99精品久久| 成人av在线资源| 亚洲国产美国国产综合一区二区| 91麻豆精品国产无毒不卡在线观看 | 开心九九激情九九欧美日韩精美视频电影| 884aa四虎影成人精品一区| 免费看欧美女人艹b| 精品精品欲导航| 成人sese在线| 亚洲国产三级在线| 欧美xxxxx裸体时装秀| 91天堂素人约啪| 午夜精品久久久久久| 国产亚洲精品中文字幕|