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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專(zhuān)輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? readxml.java

?? Java門(mén)電路畫(huà)圖器 基本功能: 1。文件的保存
?? JAVA
字號(hào):
package ding;

import org.w3c.dom.*;
import org.xml.sax.*;
import org.xml.sax.helpers.*;
import javax.xml.parsers.*;
import javax.swing.*;

/**
 * <p>Title: 門(mén)電路畫(huà)圖器</p>
 * <p>Description: www.1shu.net</p>
 * <p>Copyright: Copyright (c) 2003</p>
 * <p>Company: EyeSome</p>
 * @author ES
 * @version 1.0
 */

public class readXml
    extends DefaultHandler {
  /**
   * 每個(gè)構(gòu)件都初始40個(gè),就是說(shuō)每個(gè)元件的每種構(gòu)件最大為40
   */
  yjRec inRec[] = new yjRec[40];
  yjLine inLine[] = new yjLine[40];
  yjCircle inCircle[] = new yjCircle[40];
  yjStr inStr[] = new yjStr[40];
  yjArc inArc[] = new yjArc[40];
  private int yuanjianNo = -1, lineNo = -1, recNo = -1, strNo = -1, arcNo = -1,
      circleNo = -1;
  private int yuanjianFlag = 0, lineFlag = 0, recFlag = 0, strFlag = 0,
      arcFlag = 0, circleFlag = 0;

  mainFrame mFrame;
  private int index;
  private Locator locator;
  boolean yuanjianTemp = false;
  String picpath, des;
  int id;

  //Constructor
  public readXml(mainFrame frame) {
    super(); //it must be done !
    mFrame = frame;
    yuanjianNo = -1;
  }

  public readXml(mainFrame frame, int tyuanjianNo) {
    super(); //it must be done !
    mFrame = frame;
    this.yuanjianNo = tyuanjianNo;
  }

  public readXml(mainFrame frame, boolean yuanjianTemp) {
    super(); //it must be done !
    mFrame = frame;
    this.yuanjianTemp = yuanjianTemp;
  }

  //nain method
  /**public  void readXmlMain(mainFrame frame) {
    mFrame = frame;
    try {
      SAXParserFactory sf = SAXParserFactory.newInstance();
      SAXParser sp = sf.newSAXParser();
      readXml reader = new readXml();
      sp.parse(new InputSource("src\\ding\\file.xml"), reader);
    }
    catch (Exception e) {
      e.printStackTrace();
    }
     }*/

  //Response the startDocument event
  public void startDocument() {
  }

//Response the startElement event
  public void startElement(String uri, String localName, String qName,
                           Attributes attrs) {
    int attrCount, i;
    //int x, y, r, width, height, x1, y1, x2, y2, startDu, Du, typeDu;
    //String str;
    if (yuanjianFlag == 1) {
      if (lineFlag == 1) {
        if (qName.equalsIgnoreCase("line")) {
          lineNo++; //計(jì)數(shù)加一
          inLine[lineNo] = new yjLine();
          inLine[lineNo].setValue(Integer.parseInt(attrs.getValue(0)),
                                  Integer.parseInt(attrs.getValue(1)),
                                  Integer.parseInt(attrs.getValue(2)),
                                  Integer.parseInt(attrs.getValue(3)));
        }
      }
      if (recFlag == 1) {
        if (qName.equalsIgnoreCase("rec")) {
          recNo++;
          inRec[recNo] = new yjRec();
          inRec[recNo].setValue(Integer.parseInt(attrs.getValue(0)),
                                Integer.parseInt(attrs.getValue(1)),
                                Integer.parseInt(attrs.getValue(2)),
                                Integer.parseInt(attrs.getValue(3)));
        }
      }
      if (strFlag == 1) {
        if (qName.equalsIgnoreCase("str")) {
          strNo++;
          inStr[strNo] = new yjStr();
          inStr[strNo].setValue(Integer.parseInt(attrs.getValue(0)),
                                Integer.parseInt(attrs.getValue(1)),
                                attrs.getValue(2));
        }

      }
      if (arcFlag == 1) {
        if (qName.equalsIgnoreCase("arc")) {
          arcNo++;
          inArc[arcNo] = new yjArc();
          inArc[arcNo].setValue(Integer.parseInt(attrs.getValue(0)),
                                Integer.parseInt(attrs.getValue(1)),
                                Integer.parseInt(attrs.getValue(2)),
                                Integer.parseInt(attrs.getValue(3)),
                                Integer.parseInt(attrs.getValue(4)),
                                Integer.parseInt(attrs.getValue(5)),
                                Integer.parseInt(attrs.getValue(6)));
        }
      }
      if (circleFlag == 1) {
        if (qName.equalsIgnoreCase("circle")) {
          circleNo++;
          inCircle[circleNo] = new yjCircle();
          inCircle[circleNo].setValue(Integer.parseInt(attrs.getValue(0)),
                                      Integer.parseInt(attrs.getValue(1)),
                                      Integer.parseInt(attrs.getValue(2)),
                                      Integer.parseInt(attrs.getValue(3)));
        }

      }
    }

    if (qName.equalsIgnoreCase("yuanjian")) {
      yuanjianFlag = 1;
      if (yuanjianTemp) {
        picpath = attrs.getValue(0);
        des = attrs.getValue(1);
      }else{
        id = Integer.parseInt(attrs.getValue(0));
        des = attrs.getValue(1);

      }

    }
    if (qName.equalsIgnoreCase("linep")) {
      lineFlag = 1;
    }
    if (qName.equalsIgnoreCase("recp")) {
      recFlag = 1;
    }
    if (qName.equalsIgnoreCase("arcp")) {
      arcFlag = 1;
    }
    if (qName.equalsIgnoreCase("circlep")) {
      circleFlag = 1;
    }
    if (qName.equalsIgnoreCase("strp")) {
      strFlag = 1;
    }
    if (qName.equalsIgnoreCase("yjt")) {
      mFrame.yjt[Integer.parseInt(attrs.getValue(0))].number = Integer.parseInt(
          attrs.getValue(1));
    }

  }

  //Response the endDocument event
  public void endDocument() {
  }

  //Response the endElement event
  public void endElement(String uri, String localName, String qName) {

    int i, j;
    if (qName.equalsIgnoreCase("yuanjian")) {
      //System.out.println("recNo:" + recNo + " lineNo:" + lineNo + " circleNo:" +
      //                   circleNo + " strNo:" + strNo + " arcNo:" + arcNo);
      yjRec tRec[] = new yjRec[recNo + 1];
      yjLine tLine[] = new yjLine[lineNo + 1];
      yjCircle tCircle[] = new yjCircle[circleNo + 1];
      yjStr tStr[] = new yjStr[strNo + 1];
      yjArc tArc[] = new yjArc[arcNo + 1];

      if (lineNo >= 0) {
        //yjLine tLine[] = new yjLine[lineNo + 1];
        for (i = 0; i <= lineNo; i++) {
          tLine[i] = new yjLine();
          tLine[i] = inLine[i].getValue();
        }
      }
      else {
        tLine = null;
      }
      if (recNo >= 0) {
        //yjRec tRec[] = new yjRec[recNo + 1];
        for (i = 0; i <= recNo; i++) {
          tRec[i] = inRec[i];
        }
      }
      else {
        tRec = null;
      }
      if (arcNo >= 0) {
        //yjArc tArc[] = new yjArc[arcNo + 1];
        for (i = 0; i <= arcNo; i++) {
          tArc[i] = inArc[i];
        }
      }
      else {
        tArc = null;
      }
      if (circleNo >= 0) {
        //yjCircle tCircle[] = new yjCircle[circleNo + 1];
        for (i = 0; i <= circleNo; i++) {
          tCircle[i] = inCircle[i];
        }
      }
      else {
        tCircle = null;
      }
      if (strNo >= 0) {
        //yjStr tStr[] = new yjStr[strNo + 1];
        for (i = 0; i <= strNo; i++) {
          tStr[i] = inStr[i];
        }
      }
      else {
        tStr = null;
      }
      yuanjianNo++;
      //System.out.println("|   yuanjianNo:" + yuanjianNo);
      //System.out.println("yuanjianNo:" + yuanjianNo);
      if (!yuanjianTemp) {
        mFrame.yjc[yuanjianNo] = new yuanjian(tRec, tLine, tCircle, tStr, tArc);
        //System.out.println("yuanjianNo:" + yuanjianNo);
        mFrame.yjc[yuanjianNo].des = des;
        mFrame.yjc[yuanjianNo].id = id;
        //System.out.println(id);
      }
      else {
        mFrame.yjt[yuanjianNo] = new yuanjiantemp(tRec, tLine, tCircle, tStr,
                                                  tArc);
        mFrame.yjt[yuanjianNo].picPath = this.picpath;
        mFrame.yjt[yuanjianNo].des = des;
        mFrame.yjt[yuanjianNo].id = yuanjianNo;
      }
      lineNo = -1;
      recNo = -1;
      strNo = -1;
      arcNo = -1;
      circleNo = -1;
      yuanjianFlag = 0;
    }
    if (qName.equalsIgnoreCase("linep")) {
      lineFlag = 0;
    }
    if (qName.equalsIgnoreCase("recp")) {
      recFlag = 0;
    }
    if (qName.equalsIgnoreCase("arcp")) {
      arcFlag = 0;
    }
    if (qName.equalsIgnoreCase("circlep")) {
      circleFlag = 0;
    }
    if (qName.equalsIgnoreCase("strp")) {
      strFlag = 0;
    }
    if (qName.equalsIgnoreCase("file")) {
      if (!yuanjianTemp) {
        mFrame.yjcNo = yuanjianNo + 1;
      }
      else {
        mFrame.yjtNo = yuanjianNo + 1;
      }

    }

  }

  //Print the fata error information
  public void fatalError(SAXParseException e) {
    /*System.out.println("\nFatal error information -->");
         System.out.println("\t" + e.getMessage());
         System.out.println("\tAt line " + locator.getLineNumber() +
                       ",column " + locator.getColumnNumber());*/
    JOptionPane.showMessageDialog(null, "嚴(yán)重的錯(cuò)誤:" + e.getMessage());

  }

  //Print the usual error information
  public void error(SAXParseException e) {
    /*System.out.println("\nUsual error information -->");
         System.out.println("\t" + e.getMessage());
         System.out.println("\tAt line " + locator.getLineNumber() +
                       ",column " + locator.getColumnNumber());*/
    JOptionPane.showMessageDialog(null, "錯(cuò)誤:" + e.getMessage());
  }

  //Print the warning information
  public void warning(SAXParseException e) {
    System.out.println("\nWarning information -->");
    System.out.println("\t" + e.getMessage());
    System.out.println("\tAt line " + locator.getLineNumber() + ",column " +
                       locator.getColumnNumber());
  }

  //Store the error locator object
  public void setDocumentLocator(Locator lct) {
    locator = lct;
  }

}

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲国产经典视频| 国产精品自在欧美一区| 亚洲尤物视频在线| 亚洲欧美乱综合| 亚洲视频一区二区在线| 综合久久久久久| 亚洲日本韩国一区| 一区二区三区四区在线播放| 亚洲色图第一区| 亚洲欧美另类小说| 洋洋成人永久网站入口| 亚洲自拍另类综合| 日日嗨av一区二区三区四区| 午夜一区二区三区在线观看| 婷婷国产在线综合| 免费成人在线视频观看| 狠狠v欧美v日韩v亚洲ⅴ| 国产美女娇喘av呻吟久久| 成人小视频免费观看| 成人精品国产福利| 91在线观看成人| 在线欧美一区二区| 欧美一区二区在线看| 精品电影一区二区| 国产精品国产三级国产| 亚洲乱码国产乱码精品精可以看 | 欧美va亚洲va| 久久久久国产精品人| 日本一区二区三区高清不卡| 中文字幕亚洲欧美在线不卡| 亚洲柠檬福利资源导航| 视频精品一区二区| 韩国女主播一区| 97国产一区二区| 欧美视频精品在线观看| 欧美xxxx在线观看| 综合亚洲深深色噜噜狠狠网站| 亚洲午夜在线电影| 久久99深爱久久99精品| 成人国产亚洲欧美成人综合网 | 欧美一级爆毛片| 欧美国产97人人爽人人喊| 亚洲六月丁香色婷婷综合久久 | 一本到三区不卡视频| 欧美精品乱码久久久久久按摩| 日韩精品中文字幕一区| 中文字幕欧美日韩一区| 一区二区高清免费观看影视大全| 青草av.久久免费一区| 国产91丝袜在线观看| 欧美日韩1区2区| 中文字幕免费在线观看视频一区| 亚洲一区二区在线观看视频| 麻豆高清免费国产一区| 99国产精品国产精品毛片| 欧美一级一级性生活免费录像| 国产女主播视频一区二区| 亚洲国产日韩a在线播放| 国产一区二区免费在线| 在线观看日韩高清av| 久久亚区不卡日本| 亚洲高清久久久| 国产成人免费视频网站 | 欧美zozo另类异族| 亚洲精品伦理在线| 国产精品一级黄| 51久久夜色精品国产麻豆| 中文字幕一区av| 精品在线免费观看| 欧美性大战久久| 亚洲欧洲av一区二区三区久久| 免费视频最近日韩| 欧美影视一区在线| 中文字幕一区二区三区在线播放| 麻豆91在线播放免费| 欧美性生活一区| 日韩理论片一区二区| 国产黄人亚洲片| 精品剧情在线观看| 日韩av午夜在线观看| 欧美性生活大片视频| 18欧美乱大交hd1984| 国产精品69久久久久水密桃| 3d动漫精品啪啪1区2区免费| 伊人一区二区三区| 成人av片在线观看| 久久九九影视网| 国产在线播精品第三| 日韩一区二区三区三四区视频在线观看 | 老司机免费视频一区二区三区| 欧美日韩在线三级| 一区二区三区日本| 成人app软件下载大全免费| 国产欧美一区视频| 国产精品一卡二卡在线观看| 欧美成人国产一区二区| 石原莉奈在线亚洲二区| 欧美日本一区二区在线观看| 亚洲一区在线观看免费观看电影高清| www.在线成人| 国产女主播视频一区二区| 国产麻豆91精品| 国产日韩三级在线| 国产91丝袜在线播放九色| 国产亚洲精品aa| 成人免费福利片| 国产精品理论片| 成人高清在线视频| 亚洲人xxxx| 91国偷自产一区二区三区观看| 亚洲免费观看高清完整| 色94色欧美sute亚洲线路一ni| 精品一区二区影视| 欧美xxxx老人做受| 国产一区二区91| 日本一区二区三区四区| 成人精品小蝌蚪| 亚洲欧美另类小说视频| 欧美又粗又大又爽| 日韩va欧美va亚洲va久久| 日韩免费福利电影在线观看| 国精产品一区一区三区mba桃花| 久久综合久色欧美综合狠狠| 国产成人aaaa| 亚洲男同性视频| 777xxx欧美| 国产精品资源在线观看| 亚洲视频免费在线观看| 欧美色视频在线| 激情久久久久久久久久久久久久久久| 久久精品这里都是精品| 99精品热视频| 亚洲一区视频在线观看视频| 91精品国产综合久久久久久久 | 亚洲国产裸拍裸体视频在线观看乱了| 精品污污网站免费看| 蜜桃av一区二区三区| 国产午夜精品久久| 91精品福利在线| 丝袜美腿成人在线| 久久尤物电影视频在线观看| a4yy欧美一区二区三区| 亚洲va国产天堂va久久en| 精品国产欧美一区二区| 成人av网在线| 日产国产欧美视频一区精品| 国产欧美日韩在线观看| 在线看日韩精品电影| 久久国产精品99久久久久久老狼| 亚洲国产成人自拍| 在线观看91av| 不卡欧美aaaaa| 日本午夜一区二区| 中文字幕一区二区在线播放| 91精品国产欧美一区二区18| 国产99一区视频免费| 舔着乳尖日韩一区| 国产精品欧美极品| 欧美一级高清片| 91蝌蚪国产九色| 久久99精品国产麻豆婷婷洗澡| 亚洲欧美在线观看| 精品国产麻豆免费人成网站| 91碰在线视频| 国产精品自产自拍| 秋霞影院一区二区| 亚洲视频在线一区观看| wwwwww.欧美系列| 欧美日本在线一区| 91性感美女视频| 国产大陆a不卡| 蜜臀av性久久久久蜜臀aⅴ| 一区二区三区四区乱视频| 国产亚洲一区二区三区四区 | 亚洲一区二区四区蜜桃| 午夜免费久久看| 国产精品电影一区二区| 26uuu久久天堂性欧美| 欧美三级日韩三级国产三级| 成人高清视频免费观看| 久久 天天综合| 亚洲超碰精品一区二区| 亚洲欧洲三级电影| 久久久久久电影| 日韩欧美一区二区在线视频| 91成人网在线| 99久久综合狠狠综合久久| 国产一区二区三区综合| 奇米精品一区二区三区四区| 亚洲一区二区三区四区中文字幕| 国产精品婷婷午夜在线观看| 精品久久久久久久久久久久久久久| 欧美日韩免费一区二区三区| 91蜜桃在线观看| 成人一二三区视频| 国产成人亚洲综合a∨婷婷图片| 欧美aaaaaa午夜精品| 午夜激情久久久| 亚洲在线成人精品| 亚洲综合清纯丝袜自拍|