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

📄 xmlparser.html

📁 这个是java的quicktime for java 的详细使用文档
💻 HTML
📖 第 1 页 / 共 5 页
字号:
<CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/qtcomponents/XMLParser.html#setPreprocessorHandler(quicktime.std.qtcomponents.XMLPreprocessorProc)">setPreprocessorHandler</A></B>(<A HREF="../../../quicktime/std/qtcomponents/XMLPreprocessorProc.html">XMLPreprocessorProc</A>&nbsp;proc)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the callback handler for preprocessor instruction events</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/qtcomponents/XMLParser.html#setStartDocumentHandler(quicktime.std.qtcomponents.XMLStartDocProc)">setStartDocumentHandler</A></B>(<A HREF="../../../quicktime/std/qtcomponents/XMLStartDocProc.html">XMLStartDocProc</A>&nbsp;proc)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Set the callback handler for start document events</TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../quicktime/std/qtcomponents/XMLParser.html#setStartElementHandler(quicktime.std.qtcomponents.XMLStartElementProc)">setStartElementHandler</A></B>(<A HREF="../../../quicktime/std/qtcomponents/XMLStartElementProc.html">XMLStartElementProc</A>&nbsp;proc)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;set the start element handler UPP for event parsing</TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_quicktime.std.comp.Component"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.std.comp.<A HREF="../../../quicktime/std/comp/Component.html">Component</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/std/comp/Component.html#count()">count</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_quicktime.std.comp.ComponentIdentifier"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.std.comp.<A HREF="../../../quicktime/std/comp/ComponentIdentifier.html">ComponentIdentifier</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/std/comp/ComponentIdentifier.html#find(quicktime.std.comp.ComponentDescription)">find</A>, <A HREF="../../../quicktime/std/comp/ComponentIdentifier.html#find(quicktime.std.comp.ComponentIdentifier, quicktime.std.comp.ComponentDescription)">find</A>, <A HREF="../../../quicktime/std/comp/ComponentIdentifier.html#getInfo()">getInfo</A>, <A HREF="../../../quicktime/std/comp/ComponentIdentifier.html#toString()">toString</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_quicktime.QTObject"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class quicktime.<A HREF="../../../quicktime/QTObject.html">QTObject</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../quicktime/QTObject.html#disposeQTObject()">disposeQTObject</A>, <A HREF="../../../quicktime/QTObject.html#equals(java.lang.Object)">equals</A>, <A HREF="../../../quicktime/QTObject.html#ID(quicktime.QTObject)">ID</A></CODE></TD></TR></TABLE>&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TD><B>Methods inherited from class java.lang.Object</B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE>getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TD></TR></TABLE><A NAME="XMLParser()"><!-- --></A><H3>XMLParser</H3><PRE>public <B>XMLParser</B>()          throws <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="parse(quicktime.std.movies.media.DataRef, boolean, boolean)"><!-- --></A><H3>parse</H3><PRE>public <A HREF="../../../quicktime/std/qtcomponents/XMLDoc.html">XMLDoc</A> <B>parse</B>(<A HREF="../../../quicktime/std/movies/media/DataRef.html">DataRef</A>&nbsp;dataRef,                    boolean&nbsp;allowUppercase,                    boolean&nbsp;allowUnquotedAttributeValues)             throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A>,                    <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>parses the XML file pointed to by dataRef, returning a XMLParseTree parse tree</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dataref</CODE> - &nbsp;<DD><CODE>allowUppercase</CODE> - to set StdQTConstants5.xmlParseFlagAllowUppercase flag<DD><CODE>allowUnquotedAttributeValues</CODE> - to set StdQTConstants5.xmlParseFlagAllowUnquotedAttributeValues flag<DT><B>Returns:</B><DD>XMLParseTree</DL></DD></DL><HR><A NAME="parse(quicktime.io.QTFile, boolean, boolean)"><!-- --></A><H3>parse</H3><PRE>public <A HREF="../../../quicktime/std/qtcomponents/XMLDoc.html">XMLDoc</A> <B>parse</B>(<A HREF="../../../quicktime/io/QTFile.html">QTFile</A>&nbsp;file,                    boolean&nbsp;allowUppercase,                    boolean&nbsp;allowUnquotedAttributeValues)             throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A>,                    <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Parses the XML file pointed to by file, returning a XMLDoc parse tree</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - open for read<DD><CODE>allowUppercase</CODE> - to set StdQTConstants5.xmlParseFlagAllowUppercase flag<DD><CODE>allowUnquotedAttributeValues</CODE> - to set StdQTConstants5.xmlParseFlagAllowUnquotedAttributeValues flag<DT><B>Returns:</B><DD>XMLDoc</DL></DD></DL><HR><A NAME="eventParse(quicktime.std.movies.media.DataRef, boolean, boolean)"><!-- --></A><H3>eventParse</H3><PRE>public void <B>eventParse</B>(<A HREF="../../../quicktime/std/movies/media/DataRef.html">DataRef</A>&nbsp;dataRef,                       boolean&nbsp;allowUppercase,                       boolean&nbsp;allowUnquotedAttributeValues)                throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A>,                       <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Parses the XML file pointed to by dataRef, using event-based parsing. Does not return a parse tree</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>dataref</CODE> - &nbsp;<DD><CODE>allowUppercase</CODE> - to set StdQTConstants5.xmlParseFlagAllowUppercase flag<DD><CODE>allowUnquotedAttributeValues</CODE> - to set StdQTConstants5.xmlParseFlagAllowUnquotedAttributeValues flag</DL></DD></DL><HR><A NAME="eventParse(quicktime.io.QTFile, boolean, boolean)"><!-- --></A><H3>eventParse</H3><PRE>public void <B>eventParse</B>(<A HREF="../../../quicktime/io/QTFile.html">QTFile</A>&nbsp;file,                       boolean&nbsp;allowUppercase,                       boolean&nbsp;allowUnquotedAttributeValues)                throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A>,                       <A HREF="../../../quicktime/QTException.html">QTException</A></PRE><DL><DD>Parses the XML file pointed to by file, using event-based parsing. Does not return a parse tree</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>file</CODE> - open for read<DD><CODE>allowUppercase</CODE> - to set StdQTConstants5.xmlParseFlagAllowUppercase flag<DD><CODE>allowUnquotedAttributeValues</CODE> - to set StdQTConstants5.xmlParseFlagAllowUnquotedAttributeValues flag</DL></DD></DL><HR><A NAME="addElement(java.lang.String, int, int, int)"><!-- --></A><H3>addElement</H3><PRE>public int <B>addElement</B>(java.lang.String&nbsp;elementName,                      int&nbsp;nameSpaceID,                      int&nbsp;elementID,                      int&nbsp;elementFlags)               throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>tell the parser of an element to be recognized in the specified namespace</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>elementName</CODE> - name<DD><CODE>nameSpaceID</CODE> - tokenized identifier, can be nameSpaceIDNone<DD><CODE>elementID</CODE> - tokenized identifier, zero or unique identifier<DD><CODE>elementFlags</CODE> - flags<DT><B>Returns:</B><DD>tokenized element identifier  if elementID non zero, is elementID else generated unique non zero element identifier</DL></DD></DL><HR><A NAME="addAttribute(int, int, java.lang.String, int)"><!-- --></A><H3>addAttribute</H3><PRE>public int <B>addAttribute</B>(int&nbsp;elementID,                        int&nbsp;nameSpaceID,                        java.lang.String&nbsp;attributeName,                        int&nbsp;attributeID)                 throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>tell the parser of an attribute for the specified element in the specified namespace</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>elementID</CODE> - non zero unique tokenized element identifier<DD><CODE>nameSpaceID</CODE> - tokenized identifier, can be nameSpaceIDNone<DD><CODE>attributeName</CODE> - name<DD><CODE>elementID</CODE> - zero or unique elementID<DT><B>Returns:</B><DD>attribute identifier token  if attributeID non zero, is elementID else generated unique non zero attribute identifier<DT><B>Throws:</B><DD><CODE>on</CODE> - zero elementID</DL></DD></DL><HR><A NAME="addAttributeValueKind(int, int, int, byte[])"><!-- --></A><H3>addAttributeValueKind</H3><PRE>public void <B>addAttributeValueKind</B>(int&nbsp;elementID,                                  int&nbsp;attributeID,                                  int&nbsp;attributeValueKind,                                  byte[]&nbsp;attributeValueKindInfo)                           throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>tell the parser that the particular attribute of an element may have an additional kind of value,  as specified by attributeValueKind and attributeValueKindInfo</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>elementID</CODE> - non zero unique tokenized element identifier<DD><CODE>attributeID</CODE> - non zero unique tokenized attribute identifier<DD><CODE>attributeValueKind</CODE> - &nbsp;<DD><CODE>attributeValueKindInfo</CODE> - &nbsp;<DT><B>Throws:</B><DD><CODE>on</CODE> - zero elementID<DD><CODE>on</CODE> - zero attributeID</DL></DD></DL><HR><A NAME="addAttributeValueKind(int, int, java.lang.String)"><!-- --></A><H3>addAttributeValueKind</H3><PRE>public void <B>addAttributeValueKind</B>(int&nbsp;elementID,                                  int&nbsp;attributeID,                                  java.lang.String&nbsp;attributeStringValue)                           throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>tell the parser of an enumerated attribute, of type attributeValueKindCharString, for the specified element</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>elementID</CODE> - non zero tokenized element identifier<DD><CODE>nameSpaceID</CODE> - tokenized identifier, can be nameSpaceIDNone<DD><CODE>attributeName</CODE> - name<DD><CODE>attributeID</CODE> - non zero unique tokenized attribute identifier<DD><CODE>attributeStringValue</CODE> - String<DT><B>Returns:</B><DD>attribute identifier token  if attributeID non zero else generated unique non zero attribute identifier<DT><B>Throws:</B><DD><CODE>on</CODE> - zero elementID</DL></DD></DL><HR><A NAME="addAttributeValueKind(int, int, int)"><!-- --></A><H3>addAttributeValueKind</H3><PRE>public void <B>addAttributeValueKind</B>(int&nbsp;elementID,                                  int&nbsp;attributeID,                                  int&nbsp;attributeValue)                           throws <A HREF="../../../quicktime/std/StdQTException.html">StdQTException</A></PRE><DL><DD>tell the parser that the particular attribute of an element may have an additional attributeValueKindInteger value,  as specified by attributeValueKind and attributeValueKindInfo</DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>elementID</CODE> - non zero unique tokenized element identifier<DD><CODE>attributeID</CODE> - non zero unique tokenized attribute identifier<DD><CODE>attributeValue</CODE> - int<DT><B>Throws:</B><DD><CODE>on</CODE> - zero elementID<DD><CODE>on</CODE> - zero attributeID</DL></DD></DL><HR>

⌨️ 快捷键说明

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