xmleventfactory.html
来自「j2ee帮助文档软件设计/软件工程 文件格式」· HTML 代码 · 共 961 行 · 第 1/5 页
HTML
961 行
Create a new instance of the factory</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static <A HREF="../../../javax/xml/stream/XMLEventFactory.html" title="class in javax.xml.stream">XMLEventFactory</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/stream/XMLEventFactory.html#newInstance(java.lang.String, java.lang.ClassLoader)">newInstance</A></B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> factoryId, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang">ClassLoader</A> classLoader)</CODE><BR> Create a new instance of the factory</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract void</CODE></FONT></TD><TD><CODE><B><A HREF="../../../javax/xml/stream/XMLEventFactory.html#setLocation(javax.xml.stream.Location)">setLocation</A></B>(<A HREF="../../../javax/xml/stream/Location.html" title="interface in javax.xml.stream">Location</A> location)</CODE><BR> This method allows setting of the Location on each event that is created by this factory.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"><TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html" title="class or interface in java.lang">Object</A></B></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/Object.html#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD></TR></TABLE> <P><!-- ========= CONSTRUCTOR DETAIL ======== --><A NAME="constructor_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Constructor Detail</B></FONT></TH></TR></TABLE><A NAME="XMLEventFactory()"><!-- --></A><H3>XMLEventFactory</H3><PRE>protected <B>XMLEventFactory</B>()</PRE><DL></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"><B>Method Detail</B></FONT></TH></TR></TABLE><A NAME="newInstance()"><!-- --></A><H3>newInstance</H3><PRE>public static <A HREF="../../../javax/xml/stream/XMLEventFactory.html" title="class in javax.xml.stream">XMLEventFactory</A> <B>newInstance</B>() throws <A HREF="../../../javax/xml/stream/FactoryConfigurationError.html" title="class in javax.xml.stream">FactoryConfigurationError</A></PRE><DL><DD>Create a new instance of the factory<P><DD><DL><DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/stream/FactoryConfigurationError.html" title="class in javax.xml.stream">FactoryConfigurationError</A></CODE> - if an instance of this factory cannot be loaded</DL></DD></DL><HR><A NAME="newInstance(java.lang.String, java.lang.ClassLoader)"><!-- --></A><H3>newInstance</H3><PRE>public static <A HREF="../../../javax/xml/stream/XMLEventFactory.html" title="class in javax.xml.stream">XMLEventFactory</A> <B>newInstance</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> factoryId, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/ClassLoader.html" title="class or interface in java.lang">ClassLoader</A> classLoader) throws <A HREF="../../../javax/xml/stream/FactoryConfigurationError.html" title="class in javax.xml.stream">FactoryConfigurationError</A></PRE><DL><DD>Create a new instance of the factory<P><DD><DL><DT><B>Parameters:</B><DD><CODE>factoryId</CODE> - Name of the factory to find, same as a property name<DD><CODE>classLoader</CODE> - classLoader to use<DT><B>Returns:</B><DD>the factory implementation<DT><B>Throws:</B><DD><CODE><A HREF="../../../javax/xml/stream/FactoryConfigurationError.html" title="class in javax.xml.stream">FactoryConfigurationError</A></CODE> - if an instance of this factory cannot be loaded</DL></DD></DL><HR><A NAME="setLocation(javax.xml.stream.Location)"><!-- --></A><H3>setLocation</H3><PRE>public abstract void <B>setLocation</B>(<A HREF="../../../javax/xml/stream/Location.html" title="interface in javax.xml.stream">Location</A> location)</PRE><DL><DD>This method allows setting of the Location on each event that is created by this factory. The values are copied by value into the events created by this factory. To reset the location information set the location to null.<P><DD><DL><DT><B>Parameters:</B><DD><CODE>location</CODE> - the location to set on each event created</DL></DD></DL><HR><A NAME="createAttribute(java.lang.String, java.lang.String, java.lang.String, java.lang.String)"><!-- --></A><H3>createAttribute</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/Attribute.html" title="interface in javax.xml.stream.events">Attribute</A> <B>createAttribute</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> prefix, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> namespaceURI, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> localName, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</PRE><DL><DD>Create a new Attribute<P><DD><DL><DT><B>Parameters:</B><DD><CODE>prefix</CODE> - the prefix of this attribute, may not be null<DD><CODE>namespaceURI</CODE> - the attribute value is set to this value, may not be null<DD><CODE>localName</CODE> - the local name of the XML name of the attribute, localName cannot be null<DD><CODE>value</CODE> - the attribute value to set, may not be null<DT><B>Returns:</B><DD>the Attribute with specified values</DL></DD></DL><HR><A NAME="createAttribute(java.lang.String, java.lang.String)"><!-- --></A><H3>createAttribute</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/Attribute.html" title="interface in javax.xml.stream.events">Attribute</A> <B>createAttribute</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> localName, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</PRE><DL><DD>Create a new Attribute<P><DD><DL><DT><B>Parameters:</B><DD><CODE>localName</CODE> - the local name of the XML name of the attribute, localName cannot be null<DD><CODE>value</CODE> - the attribute value to set, may not be null<DT><B>Returns:</B><DD>the Attribute with specified values</DL></DD></DL><HR><A NAME="createAttribute(javax.xml.namespace.QName, java.lang.String)"><!-- --></A><H3>createAttribute</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/Attribute.html" title="interface in javax.xml.stream.events">Attribute</A> <B>createAttribute</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/javax/xml/namespace/QName.html" title="class or interface in javax.xml.namespace">QName</A> name, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> value)</PRE><DL><DD>Create a new Attribute<P><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the qualified name of the attribute, may not be null<DD><CODE>value</CODE> - the attribute value to set, may not be null<DT><B>Returns:</B><DD>the Attribute with specified values</DL></DD></DL><HR><A NAME="createNamespace(java.lang.String)"><!-- --></A><H3>createNamespace</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/Namespace.html" title="interface in javax.xml.stream.events">Namespace</A> <B>createNamespace</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> namespaceURI)</PRE><DL><DD>Create a new default Namespace<P><DD><DL><DT><B>Parameters:</B><DD><CODE>namespaceURI</CODE> - the default namespace uri<DT><B>Returns:</B><DD>the Namespace with the specified value</DL></DD></DL><HR><A NAME="createNamespace(java.lang.String, java.lang.String)"><!-- --></A><H3>createNamespace</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/Namespace.html" title="interface in javax.xml.stream.events">Namespace</A> <B>createNamespace</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> prefix, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/lang/String.html" title="class or interface in java.lang">String</A> namespaceUri)</PRE><DL><DD>Create a new Namespace<P><DD><DL><DT><B>Parameters:</B><DD><CODE>prefix</CODE> - the prefix of this namespace, may not be null<DD><CODE>namespaceUri</CODE> - the attribute value is set to this value, may not be null<DT><B>Returns:</B><DD>the Namespace with the specified values</DL></DD></DL><HR><A NAME="createStartElement(javax.xml.namespace.QName, java.util.Iterator, java.util.Iterator)"><!-- --></A><H3>createStartElement</H3><PRE>public abstract <A HREF="../../../javax/xml/stream/events/StartElement.html" title="interface in javax.xml.stream.events">StartElement</A> <B>createStartElement</B>(<A HREF="http://java.sun.com/j2se/1.5/docs/api/javax/xml/namespace/QName.html" title="class or interface in javax.xml.namespace">QName</A> name, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A> attributes, <A HREF="http://java.sun.com/j2se/1.5/docs/api/java/util/Iterator.html" title="class or interface in java.util">Iterator</A> namespaces)</PRE>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?