Final

Deprecated API


Contents
Deprecated Interfaces
java.security.Certificate
          Use java.security.cert.Certificate 
java.rmi.server.LoaderHandler
            
java.rmi.registry.RegistryHandler
            
java.rmi.server.RemoteCall
            
java.rmi.server.Skeleton
            
 

Deprecated Classes
java.security.Identity
          Use java.security.KeyStore, java.security.cert package, and java.security.Principal 
java.security.IdentityScope
          Use java.security.KeyStore, java.security.cert package, and java.security.Principal 
java.io.LineNumberInputStream
          Use LineNumberReader 
java.rmi.server.LogStream
            
java.rmi.server.Operation
            
javax.security.auth.Policy
          Use Policy.getPermissions(java.security.ProtectionDomain) and ProtectionDomain.ProtectionDomain(java.security.CodeSource, java.security.PermissionCollection, ClassLoader, java.security.Principal[]) to establish a policy's permissions for a principal. 
java.security.Signer
          Use java.security.KeyStore, java.security.cert package, and java.security.Principal 
java.io.StringBufferInputStream
          Use StringReader 
 

Deprecated Exceptions
java.rmi.RMISecurityException
          use SecurityException instead 
java.rmi.ServerRuntimeException
            
java.rmi.server.SkeletonMismatchException
            
java.rmi.server.SkeletonNotFoundException
            
 

Deprecated Fields
java.rmi.server.LogStream.BRIEF
            
java.net.HttpURLConnection.HTTP_SERVER_ERROR
          Use HTTP_INTERNAL_ERROR 
java.lang.SecurityManager.inCheck
          Use checkPermission 
java.rmi.server.LoaderHandler.packagePrefix
            
java.rmi.server.LogStream.SILENT
            
java.lang.Character.UnicodeBlock.SURROGATES_AREA
           
java.rmi.server.LogStream.VERBOSE
            
 

Deprecated Methods
java.lang.ThreadGroup.allowThreadSuspension(boolean)
          Required deprecated method suspend(). 
java.lang.SecurityManager.checkMulticast(InetAddress, byte)
          use SecurityManager#checkMulticast(java.net.InetAddress) 
java.lang.SecurityManager.classDepth(String)
          Use checkPermission 
java.lang.SecurityManager.classLoaderDepth()
          Use checkPermission 
java.lang.Thread.countStackFrames()
          The results of this call were never well defined. To make things worse, it would depend if the Thread was suspended or not, and suspend was deprecated too. 
java.lang.SecurityManager.currentClassLoader()
          Use checkPermission 
java.lang.SecurityManager.currentLoadedClass()
          Use checkPermission 
java.net.URLDecoder.decode(String)
          use URLDecoder#decode(String, String) instead 
java.lang.ClassLoader.defineClass(byte[], int, int)
          Use defineClass(String, byte[], int, int) 
java.lang.Thread.destroy()
          May cause deadlocks. 
java.rmi.server.Skeleton.dispatch(Remote, RemoteCall, int, long)
           
java.rmi.server.RemoteCall.done()
           
java.rmi.server.RemoteRef.done(RemoteCall)
            
java.net.URLEncoder.encode(String)
          use URLEncoder#encode(String, String) instead 
java.security.SignatureSpi.engineGetParameter(String)
            
java.security.SignatureSpi.engineSetParameter(String, Object)
          Replaced with engineSetParameter(AlgorithmParameterSpec) 
java.rmi.server.RemoteCall.executeCall()
           
java.security.Security.getAlgorithmProperty(String, String)
          Use AlgorithmParameters and KeyFactory instead 
java.sql.ResultSet.getBigDecimal(int, int)
          Gets the value of a column specified as a column index as a java.math.BigDecimal. 
java.sql.CallableStatement.getBigDecimal(int, int)
          Use getBigDecimal(int parameterIndex) or getBigDecimal(String parameterName) 
java.sql.ResultSet.getBigDecimal(String, int)
          Gets the value of a column specified as a column name, as a java.math.BigDecimal. 
java.lang.String.getBytes(int, int, byte[], int)
          Use getBytes() or getBytes(String) 
java.sql.Time.getDate()
          This method is deprecated and must not be used. An SQL Time object does not have a Date component. 
java.util.Date.getDate()
          use Calendar.get(Calendar.DATE) 
java.sql.Time.getDay()
          This method is deprecated and must not be used. An SQL Time object does not have a Day component. 
java.util.Date.getDay()
          use Calendar.get(Calendar.DAY_OF_WEEK) 
java.net.URLConnection.getDefaultRequestProperty(String)
          Use getRequestProperty(). 
java.rmi.server.LogStream.getDefaultStream()
            
java.sql.Date.getHours()
          This method is deprecated and must not be used. SQL Date values do not have an hours component. 
java.util.Date.getHours()
          use Calendar.get(Calendar.HOUR_OF_DAY) 
java.lang.SecurityManager.getInCheck()
          Use checkPermission 
java.rmi.server.RemoteCall.getInputStream()
           
java.lang.Runtime.getLocalizedInputStream(InputStream)
          Use InputStreamReader 
java.lang.Runtime.getLocalizedOutputStream(OutputStream)
          Use OutputStreamWriter 
java.sql.DriverManager.getLogStream()
          Gets the log PrintStream used by the DriverManager and all the JDBC Drivers. 
java.sql.Date.getMinutes()
          This method is deprecated and must not be used. SQL Date values do not have a minutes component. 
java.util.Date.getMinutes()
          use Calendar.get(Calendar.MINUTE) 
java.sql.Time.getMonth()
          This method is deprecated and must not be used. An SQL Time object does not have a Month component. 
java.util.Date.getMonth()
          use Calendar.get(Calendar.MONTH) 
java.rmi.server.Operation.getOperation()
           
java.rmi.server.Skeleton.getOperations()
           
java.rmi.server.RemoteCall.getOutputStream()
           
java.rmi.server.LogStream.getOutputStream()
            
java.security.Signature.getParameter(String)
            
java.rmi.server.RemoteCall.getResultStream(boolean)
           
java.sql.Date.getSeconds()
          This method is deprecated and must not be used. SQL Date values do not have a seconds component. 
java.util.Date.getSeconds()
          use Calendar.get(Calendar.SECOND) 
java.rmi.server.RMIClassLoader.getSecurityContext(ClassLoader)
            
java.rmi.server.LoaderHandler.getSecurityContext(ClassLoader)
            
java.util.Date.getTimezoneOffset()
          use (Calendar.get(Calendar.ZONE_OFFSET) + Calendar.get(Calendar.DST_OFFSET)) / 60000 
java.net.MulticastSocket.getTTL()
          Replaced by getTimeToLive 
java.net.DatagramSocketImpl.getTTL()
          Replaced by getTimeToLive 
java.sql.ResultSet.getUnicodeStream(int)
          Use getCharacterStream.

Gets the value of the column as an InputStream of Unicode characters. 

java.sql.ResultSet.getUnicodeStream(String)
          Use getCharacterStream

Gets the value of the column as an InputStream of Unicode characters. 

java.sql.Time.getYear()
          This method is deprecated and must not be used. An SQL Time object does not have a Year component. 
java.util.Date.getYear()
          use Calendar.get(Calendar.YEAR) - 1900 
java.lang.SecurityManager.inClass(String)
          Use checkPermission 
java.lang.SecurityManager.inClassLoader()
          Use checkPermission 
java.rmi.server.RemoteRef.invoke(RemoteCall)
            
java.lang.Character.isJavaLetter(char)
          Use isJavaIdentifierStart 
java.lang.Character.isJavaLetterOrDigit(char)
          Use isJavaIdentifierPart 
java.lang.Character.isSpace(char)
          Use isWhitespace 
java.rmi.dgc.VMID.isUnique()
            
java.rmi.server.RMIClassLoader.loadClass(String)
            
java.rmi.server.LoaderHandler.loadClass(String)
            
java.rmi.server.LoaderHandler.loadClass(URL, String)
            
java.rmi.server.LogStream.log(String)
            
java.rmi.server.RemoteRef.newCall(RemoteObject, Operation[], int, long)
            
java.util.Date.parse(String)
          use DateFormat 
java.rmi.server.LogStream.parseLevel(String)
            
java.io.DataInputStream.readLine()
          Use BufferedReader 
java.io.ObjectInputStream.readLine()
          Use BufferedReader 
java.rmi.registry.RegistryHandler.registryImpl(int)
            
java.rmi.registry.RegistryHandler.registryStub(String, int)
            
java.rmi.server.RemoteCall.releaseInputStream()
           
java.rmi.server.RemoteCall.releaseOutputStream()
           
java.lang.Thread.resume()
          Used with deprecated method Thread.suspend(). 
java.lang.ThreadGroup.resume()
          Requires deprecated method Thread.resume(). 
java.lang.System.runFinalizersOnExit(boolean)
          This method is unsafe. 
java.lang.Runtime.runFinalizersOnExit(boolean)
          This method is unsafe. 
java.util.Properties.save(OutputStream, String)
          Does not throw an IOException, use store() 
java.net.MulticastSocket.send(DatagramPacket, byte)
          use MulticastSocket#setTimeToLive 
java.sql.Time.setDate(int)
          This method is deprecated and must not be used. An SQL Time object does not have a Date component. 
java.util.Date.setDate(int)
          use Calendar.set(Calendar.DATE, day) 
java.net.URLConnection.setDefaultRequestProperty(String, String)
          Use setRequestProperty(). 
java.rmi.server.LogStream.setDefaultStream(PrintStream)
            
java.sql.Date.setHours(int)
          This method is deprecated and must not be used. SQL Date values do not have an hours component. 
java.util.Date.setHours(int)
          use Calendar.set(Calendar.HOUR_OF_DAY, hour) 
java.sql.DriverManager.setLogStream(PrintStream)
          Sets the Print Stream to use for logging data from the DriverManager and the JDBC drivers.

Use setLogWriter instead. 

java.sql.Date.setMinutes(int)
          This method is deprecated and must not be used. SQL Date values do not have a minutes component. 
java.util.Date.setMinutes(int)
          use Calendar.set(Calendar.MINUTE, minute) 
java.sql.Time.setMonth(int)
          This method is deprecated and must not be used. An SQL Time object does not have a Month component. 
java.util.Date.setMonth(int)
          use Calendar.set(Calendar.MONTH, month) 
java.rmi.server.LogStream.setOutputStream(OutputStream)
            
java.security.Signature.setParameter(String, Object)
          Replaced with setParameter(AlgorithmParameterSpec) 
java.rmi.server.RemoteStub.setRef(RemoteStub, RemoteRef)
            
java.sql.Date.setSeconds(int)
          This method is deprecated and must not be used. SQL Date values do not have a seconds component. 
java.util.Date.setSeconds(int)
          use Calendar.set(Calendar.SECOND, second) 
java.net.MulticastSocket.setTTL(byte)
          Replaced by setTimeToLive 
java.net.DatagramSocketImpl.setTTL(byte)
          Replaced by setTimeToLive 
java.sql.PreparedStatement.setUnicodeStream(int, InputStream, int)
          Sets the value of a specified parameter to the characters from a supplied InputStream, with a specified number of bytes. 
javax.sql.rowset.BaseRowSet.setUnicodeStream(int, InputStream, int)
           
java.net.URLStreamHandler.setURL(URL, String, String, int, String, String)
          use setURL(URL, String String, int, String, String, String, String, String) 
java.sql.Time.setYear(int)
          This method is deprecated and must not be used. An SQL Time object does not have a Year component. 
java.util.Date.setYear(int)
          use Calendar.set(Calendar.YEAR, year + 1900) 
java.lang.Thread.stop()
            
java.lang.ThreadGroup.stop()
          Requires deprecated method Thread.stop(). 
java.lang.Thread.stop(Throwable)
            
java.lang.Thread.suspend()
          May cause deadlocks. 
java.lang.ThreadGroup.suspend()
          Requires deprecated method Thread.suspend(). 
java.util.Date.toGMTString()
          use DateFormat 
java.util.Date.toLocaleString()
          use DateFormat 
java.rmi.server.Operation.toString()
            
java.rmi.server.LogStream.toString()
            
java.io.ByteArrayOutputStream.toString(int)
          Use toString() 
java.util.Date.UTC(int, int, int, int, int, int)
          use: Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT")); cal.set(year + 1900, month, day, hour, minute, second); cal.getTime().getTime(); 
java.rmi.server.LogStream.write(byte[], int, int)
            
java.rmi.server.LogStream.write(int)
            
java.io.ObjectOutputStream.PutField.write(ObjectOutput)
          This method is unsafe and may corrupt the output stream. Use ObjectOutputStream#writeFields() instead. 
 

Deprecated Constructors
java.sql.Date(int, int, int)
          Please use the constructor Date( long ) Constructs a Date object corresponding to the supplied Year, Month and Day. 
java.util.Date(int, int, int)
          use GregorianCalendar(int, int, int) 
java.util.Date(int, int, int, int, int)
          use GregorianCalendar(int, int, int, int, int) 
java.util.Date(int, int, int, int, int, int)
          use GregorianCalendar(int, int, int, int, int, int) 
java.util.Date(String)
          use DateFormat 
java.rmi.server.Operation(String)
            
java.rmi.RMISecurityException(String)
            
java.rmi.RMISecurityException(String, String)
            
java.rmi.ServerRuntimeException(String, Exception)
            
java.rmi.server.SkeletonMismatchException(String)
            
java.rmi.server.SkeletonNotFoundException(String)
            
java.rmi.server.SkeletonNotFoundException(String, Exception)
            
java.net.Socket(InetAddress, int, boolean)
          As of JDK 1.1, replaced by Socket 
java.net.Socket(String, int, boolean)
          As of JDK 1.1, replaced by Socket 
java.io.StreamTokenizer(InputStream)
          Use StreamTokenizer(Reader) 
java.lang.String(byte[], int)
          Use String(byte[]) or String(byte[], String) instead 
java.lang.String(byte[], int, int, int)
          Use String(byte[], int, int) instead 
java.sql.Time(int, int, int)
          Please use the constructor Time( long ) Constructs a Time object using the supplied values for Hour, Minute and Second. The Year, Month and Day elements of the Time object are set to 1970, January, 1 reflecting the Epoch (Time in milliseconds = 0).

Any attempt to access the Year, Month or Day elements of a Time object will result in an IllegalArgumentException.

Result is undefined if any argument is out of bounds. 

java.sql.Timestamp(int, int, int, int, int, int, int)
          Please use the constructor Timestamp( long ) Returns a Timestamp corresponding to the time specified by the supplied values for Year, Month, Date, Hour, Minutes, Seconds and Nanoseconds 
 


Final

Licensed Materials - Property of IBM
© Copyright IBM Corp. 2006, 2008 All Rights Reserved.