⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 3_apis_addlsax.html

📁 XML_JAVA指南 书籍语言: 简体中文 书籍类型: 程序设计 授权方式: 免费软件 书籍大小: 377 KB
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<title>Addl SAX APIs</title>
<style type="text/css">
<!--
-->
</style>
<meta name="fileID" content="quickIntro">
<meta name="keywords" content="XML">
</head>
<body BGCOLOR="#ffffff">
<table width="100%">
  <tr> 
    <td align=left> <a href="3_apis.html"><img src="../images/PreviousArrow.gif" width=26 height=26 align=bottom border=0 alt="Previous | "></a><a
href="3_apis.html"><img src="../images/NextArrow.gif" width=26 height=26 align=bottom border=0 alt="Next | "></a><a href="../alphaIndex.html"><img src="../images/xml_IDX.gif" width=26 height=26 align=bottom border=0 alt="Index | "></a><a href="../TOC.html"><img
src="../images/xml_TOC.gif" width=26 height=26 align=bottom border=0 alt="TOC | "></a><a href="../index.html"><img
src="../images/xml_Top.gif" width=26 height=26 align=bottom border=0 alt="Top | "></a></td>
    <td align=right><strong><em><a href="index.html">Top</a></em></strong> <a href="../TOC.html#intro"><strong><em>Contents</em></strong></a> <a href="../alphaIndex.html"><strong><em>Index</em></strong></a> 
      <a href="../glossary.html"><strong><em>Glossary</em></strong></a> </td>
  </tr>
</table>
<p> 
  <center>
    <IMG SRC="../images/shoeline2.gif" ALIGN="BOTTOM" BORDER="0" WIDTH="202"
    HEIGHT="25" NATURALSIZEFLAG="3"> <IMG SRC="../images/shoeline2.gif" ALIGN="BOTTOM" BORDER="0" WIDTH="202"
    HEIGHT="25" NATURALSIZEFLAG="3"> 
  </center>
<blockquote> 
  <blockquote> 
    <hr size=4>
  </blockquote>
</blockquote>
<p> 
<h2> 3b. Other SAX APIs</h2>
<table width="40%" border="1" align="right">
  <tr> 
    <td> 
      <div align="center"><b><i>Link Summary</i></b></div>
    </td>
  </tr>
  <tr> 
    <td> 
      <dl> 
        <dt><b><i>Local Links</i></b></dt>
      </dl>
      <ul>
        <li><a href="../../api/org/xml/sax/package-summary.html">org.xml.sax</a> 
        </li>
        <li><a href="../../api/internal/com/sun/xml/util/package-summary.html">com.sun.xml.util</a></li>
      </ul>
      <p><b><i>Glossary Terms</i></b></p>
      <dl> 
        <dd><a href="../glossary.html#namespace">namespace</a> <a href="../glossary.html#prolog"></a> 
        </dd>
      </dl>
      </td>
  </tr>
</table>
<p> This page continues the overview of the SAX APIs, summarizing those you are 
  most likely to use when building a SAX-based application. 
<h3><a name="addlSAX"></a>Additional SAX Interfaces</h3>
<blockquote>
  <p>In addition to the APIs described in the overview section, the <a href="../../api/org/xml/sax/package-summary.html">org.xml.sax</a> 
    package defines a few other interfaces that you are likely to use when you 
    write a SAX application.</p>
  <blockquote> 
    <p></p>
  </blockquote>
  <table width="92%" border="1">
    <tr> 
      <td width="22%"><b><i>Interface</i></b></td>
      <td width="78%"><b><i>Description</i></b></td>
    </tr>
    <tr> 
      <td width="22%"> 
        <p>AttributeList</p>
      </td>
      <td width="78%"> 
        <p> Defines methods that return the attributes defined for a tag, and 
          their values. When the <code>startElement</code> method is invoked in 
          a <code>DocumentHandler</code>, for example, an <code>AttributeList</code> 
          object that encapsulates the attribute values is passed as an argument.</p>
      </td>
    </tr>
    <tr> 
      <td width="22%">Locator</td>
      <td width="78%"> Defines methods that return document-location information. 
        Includes methods like <code>getSystemId()</code> which returns the local 
        URL for a document and <code>getLineNumber()</code>, which gives the starting 
        position of the last item that the SAX parser processed. Less frequently 
        used methods include <code>getPublicId()</code>, which returns a document 
        URI, and <code>getColumnNumber()</code>.</td>
    </tr>
  </table>
</blockquote>
<h3><a name="util"></a>Utility Package</h3>
<blockquote> 
  <p>The utility package, <code><a href="../../api/internal/com/sun/xml/util/package-summary.html">com.sun.xml.util</a></code>, 
    contains a number of classes that are helpful for building real-world applications.</p>
  <blockquote> 
    <p></p>
  </blockquote>
  <table width="92%" border="1">
    <tr> 
      <td width="22%"><b><i>Class</i></b></td>
      <td width="78%"><b><i>Description</i></b></td>
    </tr>
    <tr> 
      <td width="22%"> 
        <p>MessageCatalog</p>
      </td>
      <td width="78%"> 
        <p> This class helps when building localized applications. It lets you 
          use an identifier to look up a string for a given language. The code 
          uses the same identifier, but changing the language produces messages 
          that are appropriate for the selected locale.</p>
      </td>
    </tr>
    <tr> 
      <td width="22%">XmlChars</td>
      <td width="78%"> The methods in this class tell whether a character is valid 
        in a given role (for example, as part of a name) according to the XML 
        specification. </td>
    </tr>
    <tr> 
      <td width="22%">XmlNames</td>
      <td width="78%"> The methods in this class tell whether an identifier is 
        valid in a given role (for example, as a name, token, or qualified name) 
        according to the XML and XML <a href="../glossary.html#namespace">Namespace</a> 
        specifications. </td>
    </tr>
  </table>
</blockquote>
<blockquote>
<hr size=4>
</blockquote>
<p> 
<p> 
<table width="100%">
  <tr> 
    <td align=left> <a href="3_apis.html"><img src="../images/PreviousArrow.gif" width=26 height=26 align=top border=0 alt="Previous | "></a><a
href="3_apis.html"><img src="../images/NextArrow.gif" width=26 height=26 align=top border=0 alt="Next | "></a><a href="../alphaIndex.html"><img src="../images/xml_IDX.gif" width=26 height=26 align=top border=0 alt="Index | "></a><a href="../TOC.html"><img
src="../images/xml_TOC.gif" width=26 height=26 align=top border=0 alt="TOC | "></a><a href="../index.html"><img
src="../images/xml_Top.gif" width=26 height=26 align=top border=0 alt="Top | "></a></td>
    <td align=right><strong><em><a href="index.html">Top</a></em></strong> <a href="../TOC.html#intro"><strong><em>Contents</em></strong></a> 
      <a href="../alphaIndex.html"><strong><em>Index</em></strong></a> <a href="../glossary.html"><strong><em>Glossary</em></strong></a> 
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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