PageRenderTime 44ms CodeModel.GetById 15ms RepoModel.GetById 0ms app.codeStats 0ms

/www/tags/NOV_07_2009/htdocs/api/com/microstar/xml/XmlHandler.html

#
HTML | 606 lines | 542 code | 54 blank | 10 comment | 0 complexity | 2ca704ffe151cd0479e8985c7d798cf7 MD5 | raw file
Possible License(s): BSD-3-Clause, AGPL-1.0, Apache-2.0, LGPL-2.0, LGPL-3.0, GPL-2.0, CC-BY-SA-3.0, LGPL-2.1, GPL-3.0, MPL-2.0-no-copyleft-exception, IPL-1.0
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.5.0_14) on Tue Jul 22 07:13:42 GMT-08:00 2008 -->
  6. <TITLE>
  7. XmlHandler (jEdit API)
  8. </TITLE>
  9. <META NAME="keywords" CONTENT="com.microstar.xml.XmlHandler interface">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
  11. <NOSCRIPT>
  12. </NOSCRIPT>
  13. </HEAD>
  14. <BODY BGCOLOR="white" >
  15. <!-- ========= START OF TOP NAVBAR ======= -->
  16. <A NAME="navbar_top"><!-- --></A>
  17. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  18. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  19. <TR>
  20. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  21. <A NAME="navbar_top_firstrow"><!-- --></A>
  22. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  23. <TR ALIGN="center" VALIGN="top">
  24. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  25. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  26. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  27. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XmlHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  28. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  29. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  30. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  31. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  32. </TR>
  33. </TABLE>
  34. </TD>
  35. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  36. </EM>
  37. </TD>
  38. </TR>
  39. <TR>
  40. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  41. &nbsp;<A HREF="../../../com/microstar/xml/XmlException.html" title="class in com.microstar.xml"><B>PREV CLASS</B></A>&nbsp;
  42. &nbsp;<A HREF="../../../com/microstar/xml/XmlParser.html" title="class in com.microstar.xml"><B>NEXT CLASS</B></A></FONT></TD>
  43. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  44. <A HREF="../../../index.html?com/microstar/xml/XmlHandler.html" target="_top"><B>FRAMES</B></A> &nbsp;
  45. &nbsp;<A HREF="XmlHandler.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  46. &nbsp;
  47. <NOSCRIPT>
  48. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  49. </NOSCRIPT>
  50. </FONT></TD>
  51. </TR>
  52. <TR>
  53. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  54. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  55. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  56. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  57. </TR>
  58. </TABLE>
  59. <A NAME="skip-navbar_top"></A>
  60. <!-- ========= END OF TOP NAVBAR ========= -->
  61. <HR>
  62. <!-- ======== START OF CLASS DATA ======== -->
  63. <H2>
  64. <FONT SIZE="-1">
  65. com.microstar.xml</FONT>
  66. <BR>
  67. Interface XmlHandler</H2>
  68. <DL>
  69. <DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../com/microstar/xml/HandlerBase.html" title="class in com.microstar.xml">HandlerBase</A></DD>
  70. </DL>
  71. <HR>
  72. <B>Deprecated.</B>
  73. <P>
  74. <DL>
  75. <DT><PRE>public interface <B>XmlHandler</B></DL>
  76. </PRE>
  77. <P>
  78. XML Processing Interface.
  79. <p>Whenever you parse an XML document, you must provide an object
  80. from a class that implements this interface to receive the parsing
  81. events.
  82. <p>If you do not want to implement this entire interface, you
  83. can extend the <code>HandlerBase</code> convenience class and
  84. then implement only what you need.
  85. <p>If you are using SAX, you should implement the SAX handler
  86. interfaces rather than this one.
  87. <P>
  88. <P>
  89. <DL>
  90. <DT><B>See Also:</B><DD><A HREF="../../../com/microstar/xml/XmlParser.html" title="class in com.microstar.xml"><CODE>XmlParser</CODE></A>,
  91. <A HREF="../../../com/microstar/xml/HandlerBase.html" title="class in com.microstar.xml"><CODE>HandlerBase</CODE></A>,
  92. <CODE>org.xml.sax.EntityHandler</CODE>,
  93. <CODE>DocumentHandler</CODE>,
  94. <CODE>ErrorHandler</CODE></DL>
  95. <HR>
  96. <P>
  97. <!-- ========== METHOD SUMMARY =========== -->
  98. <A NAME="method_summary"><!-- --></A>
  99. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  100. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  101. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  102. <B>Method Summary</B></FONT></TH>
  103. </TR>
  104. <TR BGCOLOR="white" CLASS="TableRowColor">
  105. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  106. <CODE>&nbsp;void</CODE></FONT></TD>
  107. <TD><CODE><B><A HREF="../../../com/microstar/xml/XmlHandler.html#attribute(java.lang.String, java.lang.String, boolean)">attribute</A></B>(java.lang.String&nbsp;aname,
  108. java.lang.String&nbsp;value,
  109. boolean&nbsp;isSpecified)</CODE>
  110. <BR>
  111. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Attribute.</TD>
  112. </TR>
  113. <TR BGCOLOR="white" CLASS="TableRowColor">
  114. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  115. <CODE>&nbsp;void</CODE></FONT></TD>
  116. <TD><CODE><B><A HREF="../../../com/microstar/xml/XmlHandler.html#charData(char[], int, int)">charData</A></B>(char[]&nbsp;ch,
  117. int&nbsp;start,
  118. int&nbsp;length)</CODE>
  119. <BR>
  120. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Character data.</TD>
  121. </TR>
  122. <TR BGCOLOR="white" CLASS="TableRowColor">
  123. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  124. <CODE>&nbsp;void</CODE></FONT></TD>
  125. <TD><CODE><B><A HREF="../../../com/microstar/xml/XmlHandler.html#doctypeDecl(java.lang.String, java.lang.String, java.lang.String)">doctypeDecl</A></B>(java.lang.String&nbsp;name,
  126. java.lang.String&nbsp;publicId,
  127. java.lang.String&nbsp;systemId)</CODE>
  128. <BR>
  129. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Document type declaration.</TD>
  130. </TR>
  131. <TR BGCOLOR="white" CLASS="TableRowColor">
  132. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  133. <CODE>&nbsp;void</CODE></FONT></TD>
  134. <TD><CODE><B><A HREF="../../../com/microstar/xml/XmlHandler.html#endDocument()">endDocument</A></B>()</CODE>
  135. <BR>
  136. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;End the document.</TD>
  137. </TR>
  138. <TR BGCOLOR="white" CLASS="TableRowColor">
  139. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  140. <CODE>&nbsp;void</CODE></FONT></TD>
  141. <TD><CODE><B><A HREF="../../../com/microstar/xml/XmlHandler.html#endElement(java.lang.String)">endElement</A></B>(java.lang.String&nbsp;elname)</CODE>
  142. <BR>
  143. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;End an element.</TD>
  144. </TR>
  145. <TR BGCOLOR="white" CLASS="TableRowColor">
  146. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  147. <CODE>&nbsp;void</CODE></FONT></TD>
  148. <TD><CODE><B><A HREF="../../../com/microstar/xml/XmlHandler.html#endExternalEntity(java.lang.String)">endExternalEntity</A></B>(java.lang.String&nbsp;systemId)</CODE>
  149. <BR>
  150. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;End an external entity.</TD>
  151. </TR>
  152. <TR BGCOLOR="white" CLASS="TableRowColor">
  153. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  154. <CODE>&nbsp;void</CODE></FONT></TD>
  155. <TD><CODE><B><A HREF="../../../com/microstar/xml/XmlHandler.html#error(java.lang.String, java.lang.String, int, int)">error</A></B>(java.lang.String&nbsp;message,
  156. java.lang.String&nbsp;systemId,
  157. int&nbsp;line,
  158. int&nbsp;column)</CODE>
  159. <BR>
  160. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Fatal XML parsing error.</TD>
  161. </TR>
  162. <TR BGCOLOR="white" CLASS="TableRowColor">
  163. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  164. <CODE>&nbsp;void</CODE></FONT></TD>
  165. <TD><CODE><B><A HREF="../../../com/microstar/xml/XmlHandler.html#ignorableWhitespace(char[], int, int)">ignorableWhitespace</A></B>(char[]&nbsp;ch,
  166. int&nbsp;start,
  167. int&nbsp;length)</CODE>
  168. <BR>
  169. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Ignorable whitespace.</TD>
  170. </TR>
  171. <TR BGCOLOR="white" CLASS="TableRowColor">
  172. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  173. <CODE>&nbsp;void</CODE></FONT></TD>
  174. <TD><CODE><B><A HREF="../../../com/microstar/xml/XmlHandler.html#processingInstruction(java.lang.String, java.lang.String)">processingInstruction</A></B>(java.lang.String&nbsp;target,
  175. java.lang.String&nbsp;data)</CODE>
  176. <BR>
  177. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Processing instruction.</TD>
  178. </TR>
  179. <TR BGCOLOR="white" CLASS="TableRowColor">
  180. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  181. <CODE>&nbsp;java.lang.Object</CODE></FONT></TD>
  182. <TD><CODE><B><A HREF="../../../com/microstar/xml/XmlHandler.html#resolveEntity(java.lang.String, java.lang.String)">resolveEntity</A></B>(java.lang.String&nbsp;publicId,
  183. java.lang.String&nbsp;systemId)</CODE>
  184. <BR>
  185. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Resolve an External Entity.</TD>
  186. </TR>
  187. <TR BGCOLOR="white" CLASS="TableRowColor">
  188. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  189. <CODE>&nbsp;void</CODE></FONT></TD>
  190. <TD><CODE><B><A HREF="../../../com/microstar/xml/XmlHandler.html#startDocument()">startDocument</A></B>()</CODE>
  191. <BR>
  192. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Start the document.</TD>
  193. </TR>
  194. <TR BGCOLOR="white" CLASS="TableRowColor">
  195. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  196. <CODE>&nbsp;void</CODE></FONT></TD>
  197. <TD><CODE><B><A HREF="../../../com/microstar/xml/XmlHandler.html#startElement(java.lang.String)">startElement</A></B>(java.lang.String&nbsp;elname)</CODE>
  198. <BR>
  199. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Start an element.</TD>
  200. </TR>
  201. <TR BGCOLOR="white" CLASS="TableRowColor">
  202. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  203. <CODE>&nbsp;void</CODE></FONT></TD>
  204. <TD><CODE><B><A HREF="../../../com/microstar/xml/XmlHandler.html#startExternalEntity(java.lang.String)">startExternalEntity</A></B>(java.lang.String&nbsp;systemId)</CODE>
  205. <BR>
  206. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<B>Deprecated.</B>&nbsp;Begin an external entity.</TD>
  207. </TR>
  208. </TABLE>
  209. &nbsp;
  210. <P>
  211. <!-- ============ METHOD DETAIL ========== -->
  212. <A NAME="method_detail"><!-- --></A>
  213. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  214. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  215. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  216. <B>Method Detail</B></FONT></TH>
  217. </TR>
  218. </TABLE>
  219. <A NAME="startDocument()"><!-- --></A><H3>
  220. startDocument</H3>
  221. <PRE>
  222. void <B>startDocument</B>()
  223. throws java.lang.Exception</PRE>
  224. <DL>
  225. <DD><B>Deprecated.</B>&nbsp;<DD>Start the document.
  226. <p>&AElig;lfred will call this method just before it
  227. attempts to read the first entity (the root of the document).
  228. It is guaranteed that this will be the first method called.
  229. <P>
  230. <DD><DL>
  231. <DT><B>Throws:</B>
  232. <DD><CODE>java.lang.Exception</CODE> - The handler may throw any exception.<DT><B>See Also:</B><DD><A HREF="../../../com/microstar/xml/XmlHandler.html#endDocument()"><CODE>endDocument()</CODE></A></DL>
  233. </DD>
  234. </DL>
  235. <HR>
  236. <A NAME="endDocument()"><!-- --></A><H3>
  237. endDocument</H3>
  238. <PRE>
  239. void <B>endDocument</B>()
  240. throws java.lang.Exception</PRE>
  241. <DL>
  242. <DD><B>Deprecated.</B>&nbsp;<DD>End the document.
  243. <p>&AElig;lfred will call this method once, when it has
  244. finished parsing the XML document.
  245. It is guaranteed that this will be the last method called.
  246. <P>
  247. <DD><DL>
  248. <DT><B>Throws:</B>
  249. <DD><CODE>java.lang.Exception</CODE> - The handler may throw any exception.<DT><B>See Also:</B><DD><A HREF="../../../com/microstar/xml/XmlHandler.html#startDocument()"><CODE>startDocument()</CODE></A></DL>
  250. </DD>
  251. </DL>
  252. <HR>
  253. <A NAME="resolveEntity(java.lang.String, java.lang.String)"><!-- --></A><H3>
  254. resolveEntity</H3>
  255. <PRE>
  256. java.lang.Object <B>resolveEntity</B>(java.lang.String&nbsp;publicId,
  257. java.lang.String&nbsp;systemId)
  258. throws java.lang.Exception</PRE>
  259. <DL>
  260. <DD><B>Deprecated.</B>&nbsp;<DD>Resolve an External Entity.
  261. <p>Give the handler a chance to redirect external entities
  262. to different URIs. &AElig;lfred will call this method for the
  263. top-level document entity, for external text (XML) entities,
  264. and the external DTD subset (if any).
  265. <P>
  266. <DD><DL>
  267. <DT><B>Parameters:</B><DD><CODE>publicId</CODE> - The public identifier, or null if none was supplied.<DD><CODE>systemId</CODE> - The system identifier.
  268. <DT><B>Returns:</B><DD>The replacement system identifier, or null to use
  269. the default.
  270. <DT><B>Throws:</B>
  271. <DD><CODE>java.lang.Exception</CODE> - The handler may throw any exception.<DT><B>See Also:</B><DD><A HREF="../../../com/microstar/xml/XmlHandler.html#startExternalEntity(java.lang.String)"><CODE>startExternalEntity(java.lang.String)</CODE></A>,
  272. <A HREF="../../../com/microstar/xml/XmlHandler.html#endExternalEntity(java.lang.String)"><CODE>endExternalEntity(java.lang.String)</CODE></A></DL>
  273. </DD>
  274. </DL>
  275. <HR>
  276. <A NAME="startExternalEntity(java.lang.String)"><!-- --></A><H3>
  277. startExternalEntity</H3>
  278. <PRE>
  279. void <B>startExternalEntity</B>(java.lang.String&nbsp;systemId)
  280. throws java.lang.Exception</PRE>
  281. <DL>
  282. <DD><B>Deprecated.</B>&nbsp;<DD>Begin an external entity.
  283. <p>&AElig;lfred will call this method at the beginning of
  284. each external entity, including the top-level document entity
  285. and the external DTD subset (if any).
  286. <p>If necessary, you can use this method to track the location
  287. of the current entity so that you can resolve relative URIs
  288. correctly.
  289. <P>
  290. <DD><DL>
  291. <DT><B>Parameters:</B><DD><CODE>systemId</CODE> - The URI of the external entity that is starting.
  292. <DT><B>Throws:</B>
  293. <DD><CODE>java.lang.Exception</CODE> - The handler may throw any exception.<DT><B>See Also:</B><DD><A HREF="../../../com/microstar/xml/XmlHandler.html#endExternalEntity(java.lang.String)"><CODE>endExternalEntity(java.lang.String)</CODE></A>,
  294. <A HREF="../../../com/microstar/xml/XmlHandler.html#resolveEntity(java.lang.String, java.lang.String)"><CODE>resolveEntity(java.lang.String, java.lang.String)</CODE></A></DL>
  295. </DD>
  296. </DL>
  297. <HR>
  298. <A NAME="endExternalEntity(java.lang.String)"><!-- --></A><H3>
  299. endExternalEntity</H3>
  300. <PRE>
  301. void <B>endExternalEntity</B>(java.lang.String&nbsp;systemId)
  302. throws java.lang.Exception</PRE>
  303. <DL>
  304. <DD><B>Deprecated.</B>&nbsp;<DD>End an external entity.
  305. <p>&AElig;lfred will call this method at the end of
  306. each external entity, including the top-level document entity
  307. and the external DTD subset.
  308. <p>If necessary, you can use this method to track the location
  309. of the current entity so that you can resolve relative URIs
  310. correctly.
  311. <P>
  312. <DD><DL>
  313. <DT><B>Parameters:</B><DD><CODE>systemId</CODE> - The URI of the external entity that is ending.
  314. <DT><B>Throws:</B>
  315. <DD><CODE>java.lang.Exception</CODE> - The handler may throw any exception.<DT><B>See Also:</B><DD><A HREF="../../../com/microstar/xml/XmlHandler.html#startExternalEntity(java.lang.String)"><CODE>startExternalEntity(java.lang.String)</CODE></A>,
  316. <A HREF="../../../com/microstar/xml/XmlHandler.html#resolveEntity(java.lang.String, java.lang.String)"><CODE>resolveEntity(java.lang.String, java.lang.String)</CODE></A></DL>
  317. </DD>
  318. </DL>
  319. <HR>
  320. <A NAME="doctypeDecl(java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>
  321. doctypeDecl</H3>
  322. <PRE>
  323. void <B>doctypeDecl</B>(java.lang.String&nbsp;name,
  324. java.lang.String&nbsp;publicId,
  325. java.lang.String&nbsp;systemId)
  326. throws java.lang.Exception</PRE>
  327. <DL>
  328. <DD><B>Deprecated.</B>&nbsp;<DD>Document type declaration.
  329. <p>&AElig;lfred will call this method when or if it encounters
  330. the document type (DOCTYPE) declaration.
  331. <p>Please note that the public and system identifiers will
  332. not always be a reliable indication of the DTD in use.
  333. <P>
  334. <DD><DL>
  335. <DT><B>Parameters:</B><DD><CODE>name</CODE> - The document type name.<DD><CODE>publicId</CODE> - The public identifier, or null if unspecified.<DD><CODE>systemId</CODE> - The system identifier, or null if unspecified.
  336. <DT><B>Throws:</B>
  337. <DD><CODE>java.lang.Exception</CODE> - The handler may throw any exception.</DL>
  338. </DD>
  339. </DL>
  340. <HR>
  341. <A NAME="attribute(java.lang.String, java.lang.String, boolean)"><!-- --></A><H3>
  342. attribute</H3>
  343. <PRE>
  344. void <B>attribute</B>(java.lang.String&nbsp;aname,
  345. java.lang.String&nbsp;value,
  346. boolean&nbsp;isSpecified)
  347. throws java.lang.Exception</PRE>
  348. <DL>
  349. <DD><B>Deprecated.</B>&nbsp;<DD>Attribute.
  350. <p>&AElig;lfred will call this method once for each attribute
  351. (specified or defaulted) before reporting a startElement event.
  352. It is up to your handler to collect the attributes, if
  353. necessary.
  354. <p>You may use XmlParser.getAttributeType() to find the attribute's
  355. declared type.
  356. <P>
  357. <DD><DL>
  358. <DT><B>Parameters:</B><DD><CODE>name</CODE> - The name of the attribute.<DD><CODE>type</CODE> - The type of the attribute (see below).<DD><CODE>value</CODE> - The value of the attribute, or null if the attribute
  359. is <code>#IMPLIED</code>.<DD><CODE>isSpecified</CODE> - True if the value was specified, false if it
  360. was defaulted from the DTD.
  361. <DT><B>Throws:</B>
  362. <DD><CODE>java.lang.Exception</CODE> - The handler may throw any exception.<DT><B>See Also:</B><DD><A HREF="../../../com/microstar/xml/XmlHandler.html#startElement(java.lang.String)"><CODE>startElement(java.lang.String)</CODE></A>,
  363. <A HREF="../../../com/microstar/xml/XmlParser.html#declaredAttributes(java.lang.String)"><CODE>XmlParser.declaredAttributes(java.lang.String)</CODE></A>,
  364. <A HREF="../../../com/microstar/xml/XmlParser.html#getAttributeType(java.lang.String, java.lang.String)"><CODE>XmlParser.getAttributeType(java.lang.String, java.lang.String)</CODE></A>,
  365. <A HREF="../../../com/microstar/xml/XmlParser.html#getAttributeDefaultValue(java.lang.String, java.lang.String)"><CODE>XmlParser.getAttributeDefaultValue(java.lang.String, java.lang.String)</CODE></A></DL>
  366. </DD>
  367. </DL>
  368. <HR>
  369. <A NAME="startElement(java.lang.String)"><!-- --></A><H3>
  370. startElement</H3>
  371. <PRE>
  372. void <B>startElement</B>(java.lang.String&nbsp;elname)
  373. throws java.lang.Exception</PRE>
  374. <DL>
  375. <DD><B>Deprecated.</B>&nbsp;<DD>Start an element.
  376. <p>&AElig;lfred will call this method at the beginning of each
  377. element. By the time this is called, all of the attributes
  378. for the element will already have been reported using the
  379. <code>attribute</code> method.
  380. <P>
  381. <DD><DL>
  382. <DT><B>Parameters:</B><DD><CODE>elname</CODE> - The element type name.
  383. <DT><B>Throws:</B>
  384. <DD><CODE>java.lang.Exception</CODE> - The handler may throw any exception.<DT><B>See Also:</B><DD><A HREF="../../../com/microstar/xml/XmlHandler.html#attribute(java.lang.String, java.lang.String, boolean)"><CODE>attribute(java.lang.String, java.lang.String, boolean)</CODE></A>,
  385. <A HREF="../../../com/microstar/xml/XmlHandler.html#endElement(java.lang.String)"><CODE>endElement(java.lang.String)</CODE></A>,
  386. <A HREF="../../../com/microstar/xml/XmlParser.html#declaredElements()"><CODE>XmlParser.declaredElements()</CODE></A>,
  387. <A HREF="../../../com/microstar/xml/XmlParser.html#getElementContentType(java.lang.String)"><CODE>XmlParser.getElementContentType(java.lang.String)</CODE></A></DL>
  388. </DD>
  389. </DL>
  390. <HR>
  391. <A NAME="endElement(java.lang.String)"><!-- --></A><H3>
  392. endElement</H3>
  393. <PRE>
  394. void <B>endElement</B>(java.lang.String&nbsp;elname)
  395. throws java.lang.Exception</PRE>
  396. <DL>
  397. <DD><B>Deprecated.</B>&nbsp;<DD>End an element.
  398. <p>&AElig;lfred will call this method at the end of each element
  399. (including EMPTY elements).
  400. <P>
  401. <DD><DL>
  402. <DT><B>Parameters:</B><DD><CODE>elname</CODE> - The element type name.
  403. <DT><B>Throws:</B>
  404. <DD><CODE>java.lang.Exception</CODE> - The handler may throw any exception.<DT><B>See Also:</B><DD><A HREF="../../../com/microstar/xml/XmlHandler.html#startElement(java.lang.String)"><CODE>startElement(java.lang.String)</CODE></A>,
  405. <A HREF="../../../com/microstar/xml/XmlParser.html#declaredElements()"><CODE>XmlParser.declaredElements()</CODE></A>,
  406. <A HREF="../../../com/microstar/xml/XmlParser.html#getElementContentType(java.lang.String)"><CODE>XmlParser.getElementContentType(java.lang.String)</CODE></A></DL>
  407. </DD>
  408. </DL>
  409. <HR>
  410. <A NAME="charData(char[], int, int)"><!-- --></A><H3>
  411. charData</H3>
  412. <PRE>
  413. void <B>charData</B>(char[]&nbsp;ch,
  414. int&nbsp;start,
  415. int&nbsp;length)
  416. throws java.lang.Exception</PRE>
  417. <DL>
  418. <DD><B>Deprecated.</B>&nbsp;<DD>Character data.
  419. <p>&AElig;lfred will call this method once for each chunk of
  420. character data found in the contents of elements. Note that
  421. the parser may break up a long sequence of characters into
  422. smaller chunks and call this method once for each chunk.
  423. <p>Do <em>not</em> attempt to read more than <var>length</var>
  424. characters from the array, or to read before the
  425. <var>start</var> position.
  426. <P>
  427. <DD><DL>
  428. <DT><B>Parameters:</B><DD><CODE>ch</CODE> - The character data.<DD><CODE>start</CODE> - The starting position in the array.<DD><CODE>length</CODE> - The number of characters available.
  429. <DT><B>Throws:</B>
  430. <DD><CODE>java.lang.Exception</CODE> - The handler may throw any exception.</DL>
  431. </DD>
  432. </DL>
  433. <HR>
  434. <A NAME="ignorableWhitespace(char[], int, int)"><!-- --></A><H3>
  435. ignorableWhitespace</H3>
  436. <PRE>
  437. void <B>ignorableWhitespace</B>(char[]&nbsp;ch,
  438. int&nbsp;start,
  439. int&nbsp;length)
  440. throws java.lang.Exception</PRE>
  441. <DL>
  442. <DD><B>Deprecated.</B>&nbsp;<DD>Ignorable whitespace.
  443. <p>&AElig;lfred will call this method once for each sequence
  444. of ignorable whitespace in element content (never in mixed content).
  445. <p>For details, see section 2.10 of the XML 1.0 recommendation.
  446. <p>Do <em>not</em> attempt to read more than <var>length</var>
  447. characters from the array or to read before the <var>start</var>
  448. position.
  449. <P>
  450. <DD><DL>
  451. <DT><B>Parameters:</B><DD><CODE>ch</CODE> - The literal whitespace characters.<DD><CODE>start</CODE> - The starting position in the array.<DD><CODE>length</CODE> - The number of whitespace characters available.
  452. <DT><B>Throws:</B>
  453. <DD><CODE>java.lang.Exception</CODE> - The handler may throw any exception.</DL>
  454. </DD>
  455. </DL>
  456. <HR>
  457. <A NAME="processingInstruction(java.lang.String, java.lang.String)"><!-- --></A><H3>
  458. processingInstruction</H3>
  459. <PRE>
  460. void <B>processingInstruction</B>(java.lang.String&nbsp;target,
  461. java.lang.String&nbsp;data)
  462. throws java.lang.Exception</PRE>
  463. <DL>
  464. <DD><B>Deprecated.</B>&nbsp;<DD>Processing instruction.
  465. <p>&AElig;lfred will call this method once for each
  466. processing instruction. Note that processing instructions may
  467. appear outside of the top-level element. The
  468. <P>
  469. <DD><DL>
  470. <DT><B>Parameters:</B><DD><CODE>target</CODE> - The target (the name at the start of the PI).<DD><CODE>data</CODE> - The data, if any (the rest of the PI).
  471. <DT><B>Throws:</B>
  472. <DD><CODE>java.lang.Exception</CODE> - The handler may throw any exception.</DL>
  473. </DD>
  474. </DL>
  475. <HR>
  476. <A NAME="error(java.lang.String, java.lang.String, int, int)"><!-- --></A><H3>
  477. error</H3>
  478. <PRE>
  479. void <B>error</B>(java.lang.String&nbsp;message,
  480. java.lang.String&nbsp;systemId,
  481. int&nbsp;line,
  482. int&nbsp;column)
  483. throws java.lang.Exception</PRE>
  484. <DL>
  485. <DD><B>Deprecated.</B>&nbsp;<DD>Fatal XML parsing error.
  486. <p>&AElig;lfred will call this method whenever it encounters
  487. a serious error. The parser will attempt to continue past this
  488. point so that you can find more possible error points, but if
  489. this method is called you should assume that the document is
  490. corrupt and you should not try to use its contents.
  491. <p>Note that you can use the <code>XmlException</code> class
  492. to encapsulate all of the information provided, though the
  493. use of the class is not mandatory.
  494. <P>
  495. <DD><DL>
  496. <DT><B>Parameters:</B><DD><CODE>message</CODE> - The error message.<DD><CODE>systemId</CODE> - The system identifier of the entity that
  497. contains the error.<DD><CODE>line</CODE> - The approximate line number of the error.<DD><CODE>column</CODE> - The approximate column number of the error.
  498. <DT><B>Throws:</B>
  499. <DD><CODE>java.lang.Exception</CODE> - The handler may throw any exception.<DT><B>See Also:</B><DD><A HREF="../../../com/microstar/xml/XmlException.html" title="class in com.microstar.xml"><CODE>XmlException</CODE></A></DL>
  500. </DD>
  501. </DL>
  502. <!-- ========= END OF CLASS DATA ========= -->
  503. <HR>
  504. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  505. <A NAME="navbar_bottom"><!-- --></A>
  506. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  507. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  508. <TR>
  509. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  510. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  511. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  512. <TR ALIGN="center" VALIGN="top">
  513. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  514. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  515. <TD BGCOLOR="#00008B" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  516. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/XmlHandler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
  517. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  518. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  519. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  520. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  521. </TR>
  522. </TABLE>
  523. </TD>
  524. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  525. </EM>
  526. </TD>
  527. </TR>
  528. <TR>
  529. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  530. &nbsp;<A HREF="../../../com/microstar/xml/XmlException.html" title="class in com.microstar.xml"><B>PREV CLASS</B></A>&nbsp;
  531. &nbsp;<A HREF="../../../com/microstar/xml/XmlParser.html" title="class in com.microstar.xml"><B>NEXT CLASS</B></A></FONT></TD>
  532. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  533. <A HREF="../../../index.html?com/microstar/xml/XmlHandler.html" target="_top"><B>FRAMES</B></A> &nbsp;
  534. &nbsp;<A HREF="XmlHandler.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  535. &nbsp;
  536. <NOSCRIPT>
  537. <A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
  538. </NOSCRIPT>
  539. </FONT></TD>
  540. </TR>
  541. <TR>
  542. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  543. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  544. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  545. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;CONSTR&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  546. </TR>
  547. </TABLE>
  548. <A NAME="skip-navbar_bottom"></A>
  549. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  550. <HR>
  551. </BODY>
  552. </HTML>