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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? dcwcolumninfo.java

?? openmap java寫的開源數(shù)字地圖程序. 用applet實(shí)現(xiàn),可以像google map 那樣放大縮小地圖.
?? JAVA
?? 第 1 頁 / 共 2 頁
字號(hào):
// **********************************************************************// // <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) {

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产福利一区二区三区视频在线| 7777精品伊人久久久大香线蕉完整版 | 国产99久久久精品| 国产免费久久精品| 一本大道综合伊人精品热热| 亚洲国产wwwccc36天堂| 制服丝袜亚洲色图| 欧美色爱综合网| 精品一区二区三区在线观看国产 | 亚洲一区二区高清| 日韩欧美高清dvd碟片| 成人免费av在线| 视频一区视频二区在线观看| 久久久久国产精品麻豆ai换脸| 色婷婷综合视频在线观看| 99国产欧美另类久久久精品| 久久精品国产网站| 亚洲综合在线观看视频| 欧美v日韩v国产v| 在线观看一区日韩| 国产在线精品一区二区三区不卡| 一区二区三区不卡视频| 亚洲国产精品一区二区www| 日韩精品视频网| 久久99精品国产麻豆婷婷洗澡| 精彩视频一区二区| 成人激情小说网站| 国模娜娜一区二区三区| 午夜电影久久久| 亚洲丝袜自拍清纯另类| 欧美电视剧在线看免费| 久久午夜免费电影| 日韩一区二区麻豆国产| 欧美色偷偷大香| 日韩午夜激情免费电影| 久久久久国产精品人| 亚洲欧美乱综合| 国产精品伦理一区二区| 日韩欧美一二三四区| 国产午夜精品久久| 精品88久久久久88久久久| 欧美精品1区2区| 欧美日韩国产成人在线91| 欧美亚洲国产一区在线观看网站| www.66久久| 91丨九色porny丨蝌蚪| 国产999精品久久| 在线观看91视频| 久久久久青草大香线综合精品| 国产精品不卡一区| 国产精品天天摸av网| 一区二区三区加勒比av| 激情综合色播激情啊| 91蜜桃视频在线| 精品久久人人做人人爱| 亚洲日韩欧美一区二区在线| 久久99久久99精品免视看婷婷| jizz一区二区| 精品处破学生在线二十三| 亚洲尤物在线视频观看| 国产 欧美在线| 欧美一区二区三区四区在线观看| 欧美亚洲综合色| 亚洲精品一线二线三线无人区| 亚洲精品五月天| 亚洲第一搞黄网站| 美女国产一区二区三区| 麻豆精品蜜桃视频网站| 色八戒一区二区三区| 欧美日韩一级片网站| 国产亚洲1区2区3区| 天天av天天翘天天综合网| 成人免费视频网站在线观看| 日韩手机在线导航| 亚洲成人激情综合网| 99在线热播精品免费| 久久久99精品久久| 麻豆91在线播放| 欧美精品一卡两卡| 亚洲欧美激情在线| 丁香激情综合国产| 久久综合中文字幕| 日本中文一区二区三区| 久久电影网站中文字幕| 欧美在线播放高清精品| 亚洲人成影院在线观看| 国产黄色精品网站| 久久久青草青青国产亚洲免观| 奇米一区二区三区av| 国产裸体歌舞团一区二区| 日韩亚洲欧美中文三级| 亚洲成人免费影院| 欧洲亚洲国产日韩| 亚洲欧洲无码一区二区三区| 亚洲成人黄色小说| 欧美做爰猛烈大尺度电影无法无天| 国产女人18毛片水真多成人如厕 | 亚洲电影第三页| 91色视频在线| 亚洲美腿欧美偷拍| 99re热视频精品| 亚洲图片欧美激情| 91蜜桃免费观看视频| 亚洲欧美另类图片小说| 99精品视频一区二区| 国产精品短视频| 99久久综合色| 亚洲免费av高清| 色系网站成人免费| 一区二区在线观看视频| 欧洲亚洲精品在线| 丝袜国产日韩另类美女| 91麻豆精品国产91久久久资源速度 | 成人精品一区二区三区四区| 国产丝袜在线精品| 国产传媒日韩欧美成人| 国产精品毛片大码女人| 91麻豆国产自产在线观看| 亚洲欧美国产高清| 欧美日韩你懂的| 毛片av一区二区三区| 精品免费日韩av| 成人激情小说网站| 亚洲一区二区三区四区的| 欧美丰满少妇xxxxx高潮对白| 日本一区二区三区国色天香| 国产亚洲午夜高清国产拍精品 | 成人午夜激情在线| 国产精品美女久久久久久久| 97久久超碰精品国产| 亚洲午夜久久久久中文字幕久| 欧美系列在线观看| 极品少妇xxxx精品少妇| 国产欧美日韩不卡| 色综合天天综合在线视频| 欧美一区二区三区公司| 久久超级碰视频| 国产欧美精品一区| 欧美在线制服丝袜| 久久精品二区亚洲w码| 日本一区免费视频| 在线观看视频91| 免费观看成人av| 国产精品区一区二区三区| 欧美日韩高清一区二区| 久久成人久久爱| 亚洲品质自拍视频| 精品女同一区二区| 不卡一卡二卡三乱码免费网站| 午夜精品久久久久久久久 | 国产成人免费网站| 亚洲综合久久av| 欧美午夜在线一二页| 26uuu精品一区二区三区四区在线 26uuu精品一区二区在线观看 | 国产激情一区二区三区桃花岛亚洲| 专区另类欧美日韩| 欧美一区二区在线免费观看| 国产成人免费高清| 日韩国产精品久久| 国产精品久久三区| 日韩午夜小视频| 色婷婷一区二区三区四区| 久久国产精品72免费观看| 亚洲特黄一级片| 久久综合九色欧美综合狠狠 | 国产欧美一区二区精品秋霞影院| 91黄色激情网站| 国产精品一区二区在线看| 日韩一区二区三区视频在线观看| 成人在线一区二区三区| 免费成人在线观看视频| 亚洲欧美一区二区久久| 久久久亚洲精品石原莉奈| 欧美日韩不卡在线| 91在线观看地址| 国产精品一区一区三区| 视频一区中文字幕国产| 亚洲三级免费观看| 久久久777精品电影网影网| 欧美精品第一页| 欧美在线你懂得| av一区二区不卡| 丰满白嫩尤物一区二区| 久久 天天综合| 亚洲1区2区3区视频| 亚洲女女做受ⅹxx高潮| 国产精品看片你懂得| 精品动漫一区二区三区在线观看 | 亚洲成人一区二区| 亚洲日本青草视频在线怡红院| 久久久久综合网| 欧美成人vps| 欧美大黄免费观看| 欧美一区二视频| 制服丝袜中文字幕亚洲| 欧美精品日韩综合在线| 欧美日韩不卡一区| 777午夜精品免费视频| 欧美日韩激情一区二区| 欧美日韩亚洲综合一区二区三区|