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

📄 deprecated-list.html

📁 j2se5-api-zh,java文档的中文版本
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><!--NewPage--><HTML><HEAD><!-- Generated by javadoc (build 1.5.0_03) on Wed Nov 02 09:53:37 CST 2005 --><META http-equiv="Content-Type" content="text/html; charset=gb2312"><TITLE>已过时项目列表 (Java 2 Platform SE 5.0)</TITLE><LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style"><SCRIPT type="text/javascript">function windowTitle(){    parent.document.title="已过时项目列表 (Java 2 Platform SE 5.0)";}</SCRIPT><NOSCRIPT></NOSCRIPT></HEAD><BODY BGCOLOR="white" onload="windowTitle();"><!-- ========= START OF TOP NAVBAR ======= --><A NAME="navbar_top"><!-- --></A><A HREF="#skip-navbar_top" title="跳过导航链接"></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>概述</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">软件包</FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">类</FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">使用</FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>树</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>已过时</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>索引</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>帮助</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Standard&nbsp;Ed. 5.0</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;上一个&nbsp;&nbsp;下一个</FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="index.html@deprecated-list.html" target="_top"><B>框架</B></A>  &nbsp;&nbsp;<A HREF="deprecated-list.html" target="_top"><B>无框架</B></A>  &nbsp;&nbsp;<SCRIPT type="text/javascript">  <!--  if(window==top) {    document.writeln('<A HREF="allclasses-noframe.html"><B>所有类</B></A>');  }  //--></SCRIPT><NOSCRIPT>  <A HREF="allclasses-noframe.html"><B>所有类</B></A></NOSCRIPT></FONT></TD></TR></TABLE><A NAME="skip-navbar_top"></A><!-- ========= END OF TOP NAVBAR ========= --><HR><CENTER><H2><B>已过时的 API</B></H2></CENTER><HR SIZE="4" NOSHADE><B>目录</B><UL><LI><A HREF="#field">已过时的字段</A><LI><A HREF="#method">已过时的方法</A><LI><A HREF="#constructor">已过时的构造方法</A></UL><A NAME="field"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>已过时的字段</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/lang/SecurityManager.html#inCheck">java.lang.SecurityManager.inCheck</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>建议不使用该类安全检查。建议使用 <code>checkPermission</code> 调用。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/lang/Character.UnicodeBlock.html#SURROGATES_AREA">java.lang.Character.UnicodeBlock.SURROGATES_AREA</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>从 J2SE 5 开始,使用 <A HREF="java/lang/Character.UnicodeBlock.html#HIGH_SURROGATES"><CODE>Character.UnicodeBlock.HIGH_SURROGATES</CODE></A>、<A HREF="java/lang/Character.UnicodeBlock.html#HIGH_PRIVATE_USE_SURROGATES"><CODE>Character.UnicodeBlock.HIGH_PRIVATE_USE_SURROGATES</CODE></A> 和 <A HREF="java/lang/Character.UnicodeBlock.html#LOW_SURROGATES"><CODE>Character.UnicodeBlock.LOW_SURROGATES</CODE></A>。这些新常量符合 Unicode 标准的块定义。<A HREF="java/lang/Character.UnicodeBlock.html#of(char)"><CODE>Character.UnicodeBlock.of(char)</CODE></A> 和 <A HREF="java/lang/Character.UnicodeBlock.html#of(int)"><CODE>Character.UnicodeBlock.of(int)</CODE></A> 方法返回新常量,而不是 SURROGATES_AREA。</I>&nbsp;</TD></TR></TABLE>&nbsp;<P><A NAME="method"><!-- --></A><TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"><B>已过时的方法</B></FONT></TH></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/lang/ThreadGroup.html#allowThreadSuspension(boolean)">java.lang.ThreadGroup.allowThreadSuspension(boolean)</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>此调用的定义取决于 <A HREF="java/lang/ThreadGroup.html#suspend()"><CODE>ThreadGroup.suspend()</CODE></A>,它被废弃了。更进一步地说,此调用的行为从不被指定。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/lang/SecurityManager.html#checkMulticast(java.net.InetAddress, byte)">java.lang.SecurityManager.checkMulticast(InetAddress, byte)</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>由 #checkPermission(java.security.Permission) 取代</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/lang/SecurityManager.html#classDepth(java.lang.String)">java.lang.SecurityManager.classDepth(String)</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>建议不使用该类安全检查。建议使用 <code>checkPermission</code> 调用。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/lang/SecurityManager.html#classLoaderDepth()">java.lang.SecurityManager.classLoaderDepth()</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>建议不使用该类安全检查。建议使用 <code>checkPermission</code> 调用。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/lang/Thread.html#countStackFrames()">java.lang.Thread.countStackFrames()</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>该调用的定义依赖于 <A HREF="java/lang/Thread.html#suspend()"><CODE>Thread.suspend()</CODE></A>,但它遭到了反对。此外,该调用的结果从来都不是意义明确的。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/lang/SecurityManager.html#currentClassLoader()">java.lang.SecurityManager.currentClassLoader()</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>建议不使用该类安全检查。建议使用 <code>checkPermission</code> 调用。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/lang/SecurityManager.html#currentLoadedClass()">java.lang.SecurityManager.currentLoadedClass()</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>建议不使用该类安全检查。建议使用 <code>checkPermission</code> 调用。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/lang/ClassLoader.html#defineClass(byte[], int, int)">java.lang.ClassLoader.defineClass(byte[], int, int)</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>由 <A HREF="java/lang/ClassLoader.html#defineClass(java.lang.String, byte[], int, int)"><CODE>defineClass(String, byte[], int, int)</CODE></A> 取代</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/lang/Thread.html#destroy()">java.lang.Thread.destroy()</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>该方法最初用于破坏该线程,但不作任何清除。它所保持的任何监视器都会保持锁定状态。不过,该方法决不会被实现。即使要实现,它也极有可能以 <A HREF="java/lang/Thread.html#suspend()"><CODE>Thread.suspend()</CODE></A> 方式被死锁。如果目标线程被破坏时保持一个保护关键系统资源的锁,则任何线程在任何时候都无法再次访问该资源。如果另一个线程曾试图锁定该资源,则会出现死锁。这类死锁通常会证明它们自己是“冻结”的进程。有关更多信息,请参阅<a href="../../../../../guide/misc/threadPrimitiveDeprecation.html">为何 Thread.stop、Thread.suspend 和 Thread.resume 遭到反对?</a>。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/lang/String.html#getBytes(int, int, byte[], int)">java.lang.String.getBytes(int, int, byte[], int)</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>该方法无法将字符正确转换为字节。从 JDK 1.1 起,完成该转换的首选方法是通过 <code>getBytes()</code> 构造方法,该方法使用平台的默认字符集。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/util/Date.html#getDate()">java.util.Date.getDate()</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>从 JDK 1.1 开始,由 <code>Calendar.get(Calendar.DAY_OF_MONTH)</code> 取代。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/util/Date.html#getDay()">java.util.Date.getDay()</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>从 JDK 1.1 开始,由 <code>Calendar.get(Calendar.DAY_OF_WEEK)</code> 取代。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/util/Date.html#getHours()">java.util.Date.getHours()</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>从 JDK 1.1 开始,由 <code>Calendar.get(Calendar.HOUR_OF_DAY)</code> 取代。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/lang/SecurityManager.html#getInCheck()">java.lang.SecurityManager.getInCheck()</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>建议不使用该类安全检查。建议使用 <code>checkPermission</code> 调用。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/lang/Runtime.html#getLocalizedInputStream(java.io.InputStream)">java.lang.Runtime.getLocalizedInputStream(InputStream)</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>从 JDK&nbsp;1.1 开始,将本地编码字节流转换为 Unicode 字符流的首选方法是使用 <code>InputStreamReader</code> 和 <code>BufferedReader</code> 类。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/lang/Runtime.html#getLocalizedOutputStream(java.io.OutputStream)">java.lang.Runtime.getLocalizedOutputStream(OutputStream)</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>从 JDK&nbsp;1.1 开始,将 Unicode 字符流转换为本地编码字节流的首选方法是使用 <code>OutputStreamWriter</code>、<code>BufferedWriter</code> 和 <code>PrintWriter</code> 类。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/util/Date.html#getMinutes()">java.util.Date.getMinutes()</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>从 JDK 1.1 开始,由 <code>Calendar.get(Calendar.MINUTE)</code> 取代。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/util/Date.html#getMonth()">java.util.Date.getMonth()</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>从 JDK 1.1 开始,由 <code>Calendar.get(Calendar.MONTH)</code> 取代。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/util/Date.html#getSeconds()">java.util.Date.getSeconds()</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>从 JDK 1.1 开始,由 <code>Calendar.get(Calendar.SECOND)</code> 取代。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/util/Date.html#getTimezoneOffset()">java.util.Date.getTimezoneOffset()</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>从 JDK 1.1 开始,由 <code>-(Calendar.get(Calendar.ZONE_OFFSET) + Calendar.get(Calendar.DST_OFFSET)) / (60 * 1000)</code> 取代。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/util/Date.html#getYear()">java.util.Date.getYear()</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>从 JDK 1.1 开始,由 <code>Calendar.get(Calendar.YEAR) - 1900</code> 取代。</I>&nbsp;</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><A HREF="java/lang/SecurityManager.html#inClass(java.lang.String)">java.lang.SecurityManager.inClass(String)</A><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<I>建议不使用该类安全检查。建议使用 <code>checkPermission</code> 调用。</I>&nbsp;</TD>

⌨️ 快捷键说明

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