securityexception.html

来自「j2se5-api-zh,java文档的中文版本」· HTML 代码 · 共 556 行 · 第 1/3 页

HTML
556
字号
<TD><CODE><B>Class.</B><B><A HREF="../Class.html#getDeclaredMethods()">getDeclaredMethods</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回 <code>Method</code> 对象的一个数组,这些对象反映此 <code>Class</code> 对象表示的类或接口声明的所有方法,包括公共、保护、默认(包)访问和私有方法,但不包括继承的方法。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../reflect/Field.html" title="java.lang.reflect 中的类">Field</A></CODE></FONT></TD><TD><CODE><B>Class.</B><B><A HREF="../Class.html#getField(java.lang.String)">getField</A></B>(<A HREF="../String.html" title="java.lang 中的类">String</A>&nbsp;name)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回一个 <code>Field</code> 对象,它反映此 <code>Class</code> 对象所表示的类或接口的指定公共成员字段。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../reflect/Field.html" title="java.lang.reflect 中的类">Field</A>[]</CODE></FONT></TD><TD><CODE><B>Class.</B><B><A HREF="../Class.html#getFields()">getFields</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回一个包含某些 <code>Field</code> 对象的数组,这些对象反映此 <code>Class</code> 对象所表示的类或接口的所有可访问公共字段。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../reflect/Method.html" title="java.lang.reflect 中的类">Method</A></CODE></FONT></TD><TD><CODE><B>Class.</B><B><A HREF="../Class.html#getMethod(java.lang.String, java.lang.Class...)">getMethod</A></B>(<A HREF="../String.html" title="java.lang 中的类">String</A>&nbsp;name,          <A HREF="../Class.html" title="java.lang 中的类">Class</A>...&nbsp;parameterTypes)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回一个 <code>Method</code> 对象,它反映此 <code>Class</code> 对象所表示的类或接口的指定公共成员方法。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>&nbsp;<A HREF="../reflect/Method.html" title="java.lang.reflect 中的类">Method</A>[]</CODE></FONT></TD><TD><CODE><B>Class.</B><B><A HREF="../Class.html#getMethods()">getMethods</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;返回一个包含某些 <code>Method</code> 对象的数组,这些对象反映此 <code>Class</code> 对象所表示的类或接口(包括那些由该类或接口声明的以及从超类和超接口继承的那些的类或接口)的公共 <em>member</em> 方法。</TD></TR></TABLE>&nbsp;<P><A NAME="java.lang.reflect"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><A HREF="../reflect/package-summary.html">java.lang.reflect</A> 中 <A HREF="../SecurityException.html" title="java.lang 中的类">SecurityException</A> 的使用</FONT></TH></TR></TABLE>&nbsp;<P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TH ALIGN="left" COLSPAN="2">抛出 <A HREF="../SecurityException.html" title="java.lang 中的类">SecurityException</A> 的 <A HREF="../reflect/package-summary.html">java.lang.reflect</A> 中的方法</FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>static&nbsp;void</CODE></FONT></TD><TD><CODE><B>AccessibleObject.</B><B><A HREF="../reflect/AccessibleObject.html#setAccessible(java.lang.reflect.AccessibleObject[], boolean)">setAccessible</A></B>(<A HREF="../reflect/AccessibleObject.html" title="java.lang.reflect 中的类">AccessibleObject</A>[]&nbsp;array,              boolean&nbsp;flag)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;使用单一安全性检查(为了提高效率)为一组对象设置 <tt>accessible</tt> 标志的便捷方法。</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>AccessibleObject.</B><B><A HREF="../reflect/AccessibleObject.html#setAccessible(boolean)">setAccessible</A></B>(boolean&nbsp;flag)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;将此对象的 <tt>accessible</tt> 标志设置为指示的布尔值。</TD></TR></TABLE>&nbsp;<P><A NAME="java.util.logging"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><A HREF="../../util/logging/package-summary.html">java.util.logging</A> 中 <A HREF="../SecurityException.html" title="java.lang 中的类">SecurityException</A> 的使用</FONT></TH></TR></TABLE>&nbsp;<P><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor"><TH ALIGN="left" COLSPAN="2">抛出 <A HREF="../SecurityException.html" title="java.lang 中的类">SecurityException</A> 的 <A HREF="../../util/logging/package-summary.html">java.util.logging</A> 中的方法</FONT></TH></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>Logger.</B><B><A HREF="../../util/logging/Logger.html#addHandler(java.util.logging.Handler)">addHandler</A></B>(<A HREF="../../util/logging/Handler.html" title="java.util.logging 中的类">Handler</A>&nbsp;handler)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;添加一个日志 Handler 以接收日志记录消息。</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>LogManager.</B><B><A HREF="../../util/logging/LogManager.html#addPropertyChangeListener(java.beans.PropertyChangeListener)">addPropertyChangeListener</A></B>(java.beans.PropertyChangeListener&nbsp;l)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;添加重读日志属性时调用的事件侦听器。</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>LogManager.</B><B><A HREF="../../util/logging/LogManager.html#checkAccess()">checkAccess</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;检查使用当前上下文来修改日志配置是否受信任。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>abstract &nbsp;void</CODE></FONT></TD><TD><CODE><B>Handler.</B><B><A HREF="../../util/logging/Handler.html#close()">close</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关闭 <tt>Handler</tt>,并释放所有相关的资源。</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>StreamHandler.</B><B><A HREF="../../util/logging/StreamHandler.html#close()">close</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关闭当前输出流。</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>SocketHandler.</B><B><A HREF="../../util/logging/SocketHandler.html#close()">close</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关闭此输出流。</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>MemoryHandler.</B><B><A HREF="../../util/logging/MemoryHandler.html#close()">close</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关闭 <tt>Handler</tt>,并释放所有相关的资源。</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>FileHandler.</B><B><A HREF="../../util/logging/FileHandler.html#close()">close</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;关闭所有文件。</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>LogManager.</B><B><A HREF="../../util/logging/LogManager.html#readConfiguration()">readConfiguration</A></B>()</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;重新初始化日志属性并重新读取日志配置。</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>LogManager.</B><B><A HREF="../../util/logging/LogManager.html#readConfiguration(java.io.InputStream)">readConfiguration</A></B>(java.io.InputStream&nbsp;ins)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;从给定流重新初始化并重新读取日志配置,该配置为 java.util.Properties 格式。</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>Logger.</B><B><A HREF="../../util/logging/Logger.html#removeHandler(java.util.logging.Handler)">removeHandler</A></B>(<A HREF="../../util/logging/Handler.html" title="java.util.logging 中的类">Handler</A>&nbsp;handler)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;移除一个日志 Handler。</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>LogManager.</B><B><A HREF="../../util/logging/LogManager.html#removePropertyChangeListener(java.beans.PropertyChangeListener)">removePropertyChangeListener</A></B>(java.beans.PropertyChangeListener&nbsp;l)</CODE><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;移除属性更改事件的事件侦听器。</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor">

⌨️ 快捷键说明

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