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

📄 attributes.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 3 页
字号:
<TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/util/jar/Attributes.html#isEmpty()">isEmpty</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns true if this Map contains no attributes.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/util/Set.html">Set</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/util/jar/Attributes.html#keySet()">keySet</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a Set view of the attribute names (keys) contained in this Map.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/util/jar/Attributes.html#put(java.lang.Object, java.lang.Object)">put</A></B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;name,    <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Associates the specified value with the specified attribute name (key) in this Map.</TD></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="../../../java/util/jar/Attributes.html#putAll(java.util.Map)">putAll</A></B>(<A HREF="../../../java/util/Map.html">Map</A>&nbsp;attr)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Copies all of the attribute name-value mappings from the specified Attributes to this Map.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/util/jar/Attributes.html#putValue(java.lang.String, java.lang.String)">putValue</A></B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;name,         <A HREF="../../../java/lang/String.html">String</A>&nbsp;value)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Associates the specified value with the specified attribute name, specified as a String.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/lang/Object.html">Object</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/util/jar/Attributes.html#remove(java.lang.Object)">remove</A></B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Removes the attribute with the specified name (key) from this Map.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;int</CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/util/jar/Attributes.html#size()">size</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns the number of attributes in this Map.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../../../java/util/Collection.html">Collection</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../../java/util/jar/Attributes.html#values()">values</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Returns a Collection view of the attribute values contained in this Map.</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.<A HREF="../../../java/lang/Object.html">Object</A></B></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><A HREF="../../../java/lang/Object.html#finalize()">finalize</A>, <A HREF="../../../java/lang/Object.html#getClass()">getClass</A>, <A HREF="../../../java/lang/Object.html#notify()">notify</A>, <A HREF="../../../java/lang/Object.html#notifyAll()">notifyAll</A>, <A HREF="../../../java/lang/Object.html#toString()">toString</A>, <A HREF="../../../java/lang/Object.html#wait()">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long)">wait</A>, <A HREF="../../../java/lang/Object.html#wait(long, int)">wait</A></CODE></TD></TR></TABLE>&nbsp;<P><!-- ============ FIELD DETAIL =========== --><A NAME="field_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Field Detail</B></FONT></TD></TR></TABLE><A NAME="map"><!-- --></A><H3>map</H3><PRE>protected <A HREF="../../../java/util/Map.html">Map</A> <B>map</B></PRE><DL><DD>The attribute name-value mappings.</DL><!-- ========= 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="Attributes()"><!-- --></A><H3>Attributes</H3><PRE>public <B>Attributes</B>()</PRE><DL><DD>Constructs a new, empty Attributes object with default size.</DL><HR><A NAME="Attributes(int)"><!-- --></A><H3>Attributes</H3><PRE>public <B>Attributes</B>(int&nbsp;size)</PRE><DL><DD>Constructs a new, empty Attributes object with the specified initial size.<DD><DL><DT><B>Parameters:</B><DD><CODE>size</CODE> - the initial number of attributes</DL></DD></DL><HR><A NAME="Attributes(java.util.jar.Attributes)"><!-- --></A><H3>Attributes</H3><PRE>public <B>Attributes</B>(<A HREF="../../../java/util/jar/Attributes.html">Attributes</A>&nbsp;attr)</PRE><DL><DD>Constructs a new Attributes object with the same attribute name-value mappings as in the specified Attributes.<DD><DL><DT><B>Parameters:</B><DD><CODE>attr</CODE> - the specified Attributes</DL></DD></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="get(java.lang.Object)"><!-- --></A><H3>get</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>get</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;name)</PRE><DL><DD>Returns the value of the specified attribute name, or null if the attribute name was not found.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/util/Map.html#get(java.lang.Object)">get</A></CODE> in interface <CODE><A HREF="../../../java/util/Map.html">Map</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the attribute name<DT><B>Returns:</B><DD>the value of the specified attribute name, or null if         not found.</DL></DD></DL><HR><A NAME="getValue(java.lang.String)"><!-- --></A><H3>getValue</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>getValue</B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;name)</PRE><DL><DD>Returns the value of the specified attribute name, specified as a string, or null if the attribute was not found. The attribute name is case-insensitive. <p> This method is defined as: <pre>	    return (String)get(new Attributes.Name((String)name)); </pre><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the attribute name as a string<DT><B>Returns:</B><DD>the String value of the specified attribute name, or null if         not found.</DL></DD></DL><HR><A NAME="getValue(java.util.jar.Attributes.Name)"><!-- --></A><H3>getValue</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>getValue</B>(<A HREF="../../../java/util/jar/Attributes.Name.html">Attributes.Name</A>&nbsp;name)</PRE><DL><DD>Returns the value of the specified Attributes.Name, or null if the attribute was not found. <p> This method is defined as: <pre>     return (String)get(name); </pre><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the Attributes.Name object<DT><B>Returns:</B><DD>the String value of the specified Attribute.Name, or null if         not found.</DL></DD></DL><HR><A NAME="put(java.lang.Object, java.lang.Object)"><!-- --></A><H3>put</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>put</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;name,                  <A HREF="../../../java/lang/Object.html">Object</A>&nbsp;value)</PRE><DL><DD>Associates the specified value with the specified attribute name (key) in this Map. If the Map previously contained a mapping for the attribute name, the old value is replaced.<DD><DL><DT><B>Specified by: </B><DD><CODE><A HREF="../../../java/util/Map.html#put(java.lang.Object, java.lang.Object)">put</A></CODE> in interface <CODE><A HREF="../../../java/util/Map.html">Map</A></CODE></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the attribute name<DD><CODE>value</CODE> - the attribute value<DT><B>Returns:</B><DD>the previous value of the attribute, or null if none<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/ClassCastException.html">ClassCastException</A></CODE> - if the name is not a Attributes.Name            or the value is not a String</DL></DD></DL><HR><A NAME="putValue(java.lang.String, java.lang.String)"><!-- --></A><H3>putValue</H3><PRE>public <A HREF="../../../java/lang/String.html">String</A> <B>putValue</B>(<A HREF="../../../java/lang/String.html">String</A>&nbsp;name,                       <A HREF="../../../java/lang/String.html">String</A>&nbsp;value)</PRE><DL><DD>Associates the specified value with the specified attribute name, specified as a String. The attributes name is case-insensitive. If the Map previously contained a mapping for the attribute name, the old value is replaced. <p> This method is defined as: <pre>	    return (String)put(new Attributes.Name(name), value); </pre><DD><DL></DL></DD><DD><DL><DT><B>Parameters:</B><DD><CODE>name</CODE> - the attribute name as a string<DD><CODE>value</CODE> - the attribute value<DT><B>Returns:</B><DD>the previous value of the attribute, or null if none<DT><B>Throws:</B><DD><CODE><A HREF="../../../java/lang/IllegalArgumentException.html">IllegalArgumentException</A></CODE> - if the attribute name is invalid</DL></DD></DL><HR><A NAME="remove(java.lang.Object)"><!-- --></A><H3>remove</H3><PRE>public <A HREF="../../../java/lang/Object.html">Object</A> <B>remove</B>(<A HREF="../../../java/lang/Object.html">Object</A>&nbsp;name)</PRE>

⌨️ 快捷键说明

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