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

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

?? xmlparser.java

?? java寫的多功能文件編輯器
?? JAVA
?? 第 1 頁 / 共 5 頁
字號:
      }    }    // Check for surrogates: 00000000 0000xxxx yyyyyyyy zzzzzzzz    //  (1101|10xx|xxyy|yyyy + 1101|11yy|zzzz|zzzz:     if (value <= 0x0000ffff) {				// no surrogates needed      dataBufferAppend((char)value);    } else if (value <= 0x000fffff) {				// > 16 bits, surrogate needed      dataBufferAppend((char)(0xd8 | ((value & 0x000ffc00) >> 10)));      dataBufferAppend((char)(0xdc | (value & 0x0003ff)));    } else {				// too big for surrogate      error("character reference " + value + " is too large for UTF-16",	    new Integer(value).toString(), null);    }  }  /**    * Parse a reference.    * [69] EntityRef ::= '&' Name ';'    * *NOTE: the '&' has already been read.    * @param externalAllowed External entities are allowed here.    */  void parseEntityRef (boolean externalAllowed)    throws java.lang.Exception  {    String name;    name = readNmtoken(true);    require(';');    switch (getEntityType(name)) {    case ENTITY_UNDECLARED:      error("reference to undeclared entity", name, null);      break;    case ENTITY_INTERNAL:      pushString(name, getEntityValue(name));      break;    case ENTITY_TEXT:      if (externalAllowed) {	pushURL(name, getEntityPublicId(name),		getEntitySystemId(name),		null, null, null);      } else {	error("reference to external entity in attribute value.", name, null);      }      break;    case ENTITY_NDATA:      if (externalAllowed) {	error("data entity reference in content", name, null);      } else {	error("reference to external entity in attribute value.", name, null);      }      break;    }  }  /**    * Parse a parameter entity reference.    * [70] PEReference ::= '%' Name ';'    * *NOTE: the '%' has already been read.    */  void parsePEReference (boolean isEntityValue)    throws java.lang.Exception  {    String name;    name = "%" + readNmtoken(true);    require(';');    switch (getEntityType(name)) {    case ENTITY_UNDECLARED:      error("reference to undeclared parameter entity", name, null);      break;    case ENTITY_INTERNAL:      if (isEntityValue) {	pushString(name, getEntityValue(name));      } else {	pushString(name, " " + getEntityValue(name) + ' ');      }      break;    case ENTITY_TEXT:      if (isEntityValue) {	pushString(null, " ");      }      pushURL(name, getEntityPublicId(name),	      getEntitySystemId(name),	      null, null, null);      if (isEntityValue) {	pushString(null, " ");      }      break;    }  }  /**    * Parse an entity declaration.    * [71] EntityDecl ::= '<!ENTITY' S %Name S %EntityDef S? '>'    *                   | '<!ENTITY' S '%' S %Name S %EntityDef S? '>'    * [72] EntityDef ::= EntityValue | ExternalDef    * [73] ExternalDef ::= ExternalID %NDataDecl?    * [74] ExternalID ::= 'SYSTEM' S SystemLiteral    *                   | 'PUBLIC' S PubidLiteral S SystemLiteral    * [75] NDataDecl ::= S %'NDATA' S %Name    * *NOTE: the '<!ENTITY' has already been read.    */  void parseEntityDecl ()    throws java.lang.Exception  {    char c;    boolean peFlag = false;    String name, value, notationName, ids[];				// Check for a parameter entity.    requireWhitespace();    if (tryRead('%')) {      peFlag = true;      requireWhitespace();    }				// Read the entity name, and prepend				// '%' if necessary.    name = readNmtoken(true);    if (peFlag) {      name = "%" + name;    }				// Read the entity value.    requireWhitespace();    c = readCh();    unread(c);    if (c == '"' || c == '\'') {				// Internal entity.      context = CONTEXT_ENTITYVALUE;      value = readLiteral(LIT_CHAR_REF|LIT_PE_REF);      context = CONTEXT_DTD;      setInternalEntity(name,value);    } else {				// Read the external IDs      ids = readExternalIds(false);      if (ids[1] == null) {	error("system identifer missing", name, null);      }				// Check for NDATA declaration.      skipWhitespace();      if (tryRead("NDATA")) {	requireWhitespace();	notationName = readNmtoken(true);	setExternalDataEntity(name, ids[0], ids[1], notationName);      } else {	setExternalTextEntity(name, ids[0], ids[1]);      }    }				// Finish the declaration.    skipWhitespace();    require('>');  }  /**    * Parse a notation declaration.    * [81] NotationDecl ::= '<!NOTATION' S %Name S %ExternalID S? '>'    * *NOTE: the '<!NOTATION' has already been read.    */  void parseNotationDecl ()    throws java.lang.Exception  {    String nname, ids[];        requireWhitespace();    nname = readNmtoken(true);    requireWhitespace();				// Read the external identifiers.    ids = readExternalIds(true);    if (ids[0] == null && ids[1] == null) {      error("external identifer missing", nname, null);    }				// Register the notation.    setNotation(nname, ids[0], ids[1]);    skipWhitespace();    require('>');  }  /**    * Parse PCDATA.    * <pre>    * [16] PCData ::= [^&lt;&amp;]*    * </pre>    * <p>The trick here is that the data stays in the dataBuffer without    * necessarily being converted to a string right away.    */  void parsePCData ()    throws java.lang.Exception  {    char c;				// Start with a little cheat -- in most				// cases, the entire sequence of				// character data will already be in				// the readBuffer; if not, fall through to				// the normal approach.    if (USE_CHEATS) {      int lineAugment = 0;      int columnAugment = 0;      loop: for (int i = readBufferPos; i < readBufferLength; i++) {	switch (readBuffer[i]) {	case '\n':	  lineAugment++;	  columnAugment = 0;	  break;	case '&':	case '<':	  int start = readBufferPos;	  columnAugment++;	  readBufferPos = i;	  if (lineAugment > 0) {	    line += lineAugment;	    column = columnAugment;	  } else {	    column += columnAugment;	  }	  dataBufferAppend(readBuffer, start, i-start);	  return;	default:	  columnAugment++;	}      }    }				// OK, the cheat didn't work; start over				// and do it by the book.    while (true) {      c = readCh();      switch (c) {      case '<':      case '&':	unread(c);	return;      default:	dataBufferAppend(c);	break;      }    }  }  //////////////////////////////////////////////////////////////////////  // High-level reading and scanning methods.  //////////////////////////////////////////////////////////////////////  /**    * Require whitespace characters.    * [1] S ::= (#x20 | #x9 | #xd | #xa)+    */  void requireWhitespace ()    throws java.lang.Exception  {    char c = readCh();    if (isWhitespace(c)) {      skipWhitespace();    } else {      error("whitespace expected", c, null);    }  }  /**    * Parse whitespace characters, and leave them in the data buffer.    */  void parseWhitespace ()    throws java.lang.Exception  {    char c = readCh();    while (isWhitespace(c)) {      dataBufferAppend(c);      c = readCh();    }    unread(c);  }  /**    * Skip whitespace characters.    * [1] S ::= (#x20 | #x9 | #xd | #xa)+    */  void skipWhitespace ()    throws java.lang.Exception  {				// Start with a little cheat.  Most of				// the time, the white space will fall				// within the current read buffer; if				// not, then fall through.    if (USE_CHEATS) {      int lineAugment = 0;      int columnAugment = 0;      loop: for (int i = readBufferPos; i < readBufferLength; i++) {	switch (readBuffer[i]) {	case ' ':	case '\t':	case '\r':	  columnAugment++;	  break;	case '\n':	  lineAugment++;	  columnAugment = 0;	  break;	case '%':	  if (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE) {	    break loop;	  } // else fall through...	default:	  readBufferPos = i;	  if (lineAugment > 0) {	    line += lineAugment;	    column = columnAugment;	  } else {	    column += columnAugment;	  }	  return;	}      }    }				// OK, do it by the book.    char c = readCh();    while (isWhitespace(c)) {      c = readCh();    }    unread(c);  }  /**    * Read a name or name token.    * [5] Name ::= (Letter | '_' | ':') (NameChar)*    * [7] Nmtoken ::= (NameChar)+    * *NOTE: [6] is implemented implicitly where required.    */  String readNmtoken (boolean isName)    throws java.lang.Exception  {    char c;    if (USE_CHEATS) {      loop: for (int i = readBufferPos; i < readBufferLength; i++) {	switch (readBuffer[i]) {	case '%':	  if (context == CONTEXT_DTD || context == CONTEXT_ENTITYVALUE) {	    break loop;	  } // else fall through...	case '<':	case '>':	case '&':	case ',':	case '|':	case '*':	case '+':	case '?':	case ')':	case '=':	case '\'':	case '"':	case '[':	case ' ':	case '\t':	case '\r':	case '\n':	case ';':	case '/':	case '#':	  int start = readBufferPos;	  if (i == start) {	    error("name expected", readBuffer[i], null);	  }	  readBufferPos = i;	  return intern(readBuffer, start, i - start);	}      }    }    nameBufferPos = 0;				// Read the first character.    loop: while (true) {      c = readCh();      switch (c) {      case '%':      case '<':      case '>':      case '&':      case ',':      case '|':      case '*':      case '+':      case '?':      case ')':      case '=':      case '\'':      case '"':      case '[':      case ' ':      case '\t':      case '\n':      case '\r':      case ';':      case '/':	unread(c);	if (nameBufferPos == 0) {	  error("name expected", null, null);	}	String s = intern(nameBuffer,0,nameBufferPos);	nameBufferPos = 0;	return s;      default:	nameBuffer =	  (char[])extendArray(nameBuffer, nameBuffer.length, nameBufferPos);	nameBuffer[nameBufferPos++] = c;      }    }  }  /**    * Read a literal.    * [10] AttValue ::= '"' ([^<&"] | Reference)* '"'    *                 | "'" ([^<&'] | Reference)* "'"    * [11] SystemLiteral ::= '"' URLchar* '"' | "'" (URLchar - "'")* "'"    * [13] PubidLiteral ::= '"' PubidChar* '"' | "'" (PubidChar - "'")* "'"    * [9] EntityValue ::= '"' ([^%&"] | PEReference | Reference)* '"'    *                   | "'" ([^%&'] | PEReference | Reference)* "'"    */  String readLiteral (int flags)    throws java.lang.Exception  {    char delim, c;    int startLine = line;				// Find the delimiter.    delim = readCh();    if (delim != '"' && delim != '\'' && delim != (char)0) {      error("expected '\"' or \"'\"", delim, null);      return null;    }				// Read the literal.    try {      c = readCh();    loop: while (c != delim) {      switch (c) {				// Literals never have line ends      case '\n':      case '\r':	c = ' ';	break;				// References may be allowed      case '&':	if ((flags & LIT_CHAR_REF) > 0) {	  c = readCh();	  if (c == '#') {	    parseCharRef();	    c = readCh();	    continue loop;		// check the next character	  } else if ((flags & LIT_ENTITY_REF) > 0) {	    unread(c);	    parseEntityRef(false);	    c = readCh();	    continue loop;	  } else {	    dataBufferAppend('&');	  }	}	break;      default:	break;      }      dataBufferAppend(c);      c = readCh();    }    } catch (EOFException e) {      error("end of input while looking for delimiter (started on line "	    + startLine + ')', null, new Character(delim).toString());    }				// Normalise whitespace if necessary.    if ((flags & LIT_NORMALIZE) > 0) {      dataBufferNormalize();    }				// Return the value.    return dataBufferToString();  }  /**    * Try reading external identifiers.    * <p>The system identifier is not required for notations.    * @param inNotation Are we in a notation?    * @return A two-member String array containing the identifiers.    */  String[] readExternalIds (boolean inNotation)    throws java.lang.Exception  {    char c;    String ids[] = new String[2];    if (tryRead("PUBLIC")) {      requireWhitespace();      ids[0] = readLiteral(LIT_NORMALIZE); // public id      if (inNotation) {	skipWhitespace();	if (tryRead('"') || tryRead('\'')) {	  ids[1] = readLiteral(0);	}      } else {	requireWhitespace();	ids[1] = readLiteral(0); // system id      }    } else if (tryRead("SYSTEM")) {      requireWhitespace();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
丝袜国产日韩另类美女| 精品一二线国产| 国产无一区二区| 欧美美女一区二区在线观看| 国产高清成人在线| 日韩国产一区二| 亚洲激情第一区| 国产精品毛片高清在线完整版 | 色婷婷国产精品综合在线观看| 精品一区在线看| 天堂成人免费av电影一区| 亚洲欧洲av色图| 国产三级精品视频| 日韩女优制服丝袜电影| 欧美日韩一级二级三级| 色综合天天综合色综合av | 91免费观看视频在线| 国产一区二区视频在线播放| 免费成人美女在线观看.| 亚洲国产欧美日韩另类综合| 1区2区3区欧美| 欧美精彩视频一区二区三区| 久久众筹精品私拍模特| 日韩精品中文字幕一区| 91精品国产91热久久久做人人| 91久久精品一区二区三| 99精品久久只有精品| 成人免费视频国产在线观看| 国产精品亚洲第一| 国产乱子伦视频一区二区三区 | 免费的国产精品| 午夜视频在线观看一区二区| 亚洲综合一区二区三区| 一区二区三区久久| 一区二区三区丝袜| 亚洲午夜免费电影| 五月综合激情婷婷六月色窝| 欧美亚洲综合在线| 精品视频在线看| 欧美日韩和欧美的一区二区| 欧美精品乱码久久久久久按摩 | 欧美xxxx老人做受| 精品噜噜噜噜久久久久久久久试看| 91精品国产一区二区三区蜜臀| 欧美一区二区美女| 日韩三级在线免费观看| 欧美xxxxxxxx| 久久先锋资源网| 中文无字幕一区二区三区| 欧美激情一区二区在线| 自拍av一区二区三区| 亚洲国产成人av| 美女任你摸久久| 国产美女av一区二区三区| 成人午夜视频在线| 91麻豆精品一区二区三区| 欧美日韩视频在线一区二区| 日韩精品自拍偷拍| 国产精品全国免费观看高清| 亚洲欧美色图小说| 日韩国产欧美视频| 国产精品66部| 色就色 综合激情| 日韩视频免费直播| 国产日韩欧美制服另类| 一区二区在线看| 免费观看在线色综合| 成人免费视频视频| 欧美无砖砖区免费| 久久久不卡影院| 91网页版在线| 在线电影欧美成精品| 久久嫩草精品久久久精品| 亚洲猫色日本管| 另类人妖一区二区av| 粉嫩13p一区二区三区| 一本大道综合伊人精品热热| 日韩一级成人av| 亚洲私人影院在线观看| 青娱乐精品在线视频| 成人18精品视频| 日韩免费性生活视频播放| 亚洲欧美激情视频在线观看一区二区三区 | 波多野结衣的一区二区三区| 欧美性受xxxx| 中文字幕高清不卡| 日韩精品色哟哟| 91麻豆免费看片| 久久亚洲一区二区三区四区| 亚洲高清免费一级二级三级| 国产v综合v亚洲欧| 欧美一区二区日韩| 一区二区不卡在线视频 午夜欧美不卡在| 久久99精品久久久久| 欧美日韩一区二区不卡| 中文久久乱码一区二区| 久久成人久久鬼色| 欧美日韩激情在线| 亚洲激情网站免费观看| 国产成人在线电影| 日韩精品中午字幕| 午夜精品福利在线| 色婷婷狠狠综合| 中文字幕欧美一区| 懂色一区二区三区免费观看| 日韩一区二区精品| 午夜激情一区二区三区| 色婷婷综合久久久久中文 | 欧美一区二区三区在线电影| 亚洲视频一区二区在线观看| 国产精品综合久久| 欧美电影免费观看高清完整版在| 亚洲第一综合色| 在线视频欧美精品| 亚洲欧美日韩一区| 成人精品在线视频观看| 久久九九久久九九| 国产精品一级片在线观看| 精品少妇一区二区三区| 日本人妖一区二区| 91精品国产色综合久久| 日韩综合在线视频| 欧美一区二区在线不卡| 日欧美一区二区| 欧美福利视频一区| 亚洲一区二区高清| 欧美网站大全在线观看| 一区二区三区中文字幕| 91视视频在线直接观看在线看网页在线看| 久久精品一区二区三区不卡| 国产精品香蕉一区二区三区| 国产亚洲综合在线| 国产麻豆9l精品三级站| 久久久久国色av免费看影院| 国产成人欧美日韩在线电影| 欧美经典一区二区| 成人午夜视频在线观看| 国产精品国产a| 色综合天天综合网天天狠天天| 亚洲免费看黄网站| 欧美日韩中文另类| 日本不卡一二三区黄网| 精品国产一区二区亚洲人成毛片| 精品无人区卡一卡二卡三乱码免费卡 | 日本欧美加勒比视频| 日韩视频永久免费| 国产福利一区二区三区视频| 欧美激情资源网| 91国偷自产一区二区三区成为亚洲经典 | 欧美日韩国产综合一区二区| 亚洲一区二区四区蜜桃| 欧美精品在线观看播放| 热久久久久久久| 久久精品亚洲一区二区三区浴池| 国产一区在线观看视频| 中日韩av电影| 欧美三区在线观看| 伦理电影国产精品| 国产精品麻豆视频| 在线观看亚洲精品视频| 青青草原综合久久大伊人精品优势| 精品国产123| 成人91在线观看| 天天色综合天天| 久久亚洲私人国产精品va媚药| 9i在线看片成人免费| 午夜视频久久久久久| 久久久久久免费网| 日本乱人伦aⅴ精品| 日本女优在线视频一区二区 | 天天综合色天天| 国产午夜精品久久久久久免费视| 91丨九色丨蝌蚪丨老版| 免费精品视频在线| 国产精品私房写真福利视频| 97久久超碰国产精品电影| 亚洲综合成人网| 26uuu久久天堂性欧美| 色偷偷久久一区二区三区| 精品在线亚洲视频| 夜色激情一区二区| 精品国产3级a| 欧美日韩激情一区| 成人av一区二区三区| 日韩黄色在线观看| 亚洲人一二三区| www国产精品av| 欧美三级韩国三级日本一级| 粉嫩嫩av羞羞动漫久久久| 日韩va亚洲va欧美va久久| 中文字幕一区在线观看视频| 日韩免费电影网站| 欧洲一区在线观看| 高清不卡在线观看| 麻豆精品在线观看| 亚洲不卡av一区二区三区| 日韩美女啊v在线免费观看| www欧美成人18+| 91麻豆精品国产无毒不卡在线观看| 99久久婷婷国产综合精品电影|