Uses of Class
java.lang.Deprecated
| Package | Description |
|---|---|
| dalvik.annotation | |
| dalvik.system | |
| java.io | |
| java.lang | |
| java.net | |
| java.security |
Extensible cryptographic service provider infrastructure (SPI) for using
and defining services such as
Certificates,
Keys, KeyStores, MessageDigests, and Signatures. |
| java.sql | |
| java.util | |
| java.util.logging | |
| org.apache.http.protocol |
HTTP protocol execution framework.
|
| org.xml.sax | |
| org.xml.sax.helpers | |
| SQLite.JDBC2z |
-
Uses of Deprecated in dalvik.annotation
Classes in dalvik.annotation with annotations of type Deprecated Modifier and Type Class Description interfaceTestTargetDeprecated.Obsolete.interfaceTestTargetClassDeprecated.Obsolete. -
Uses of Deprecated in dalvik.system
Methods in dalvik.system with annotations of type Deprecated Modifier and Type Method Description voidVMRuntime. gcSoftReferences()Deprecated.longVMRuntime. getExternalBytesAllocated()Deprecated.longVMRuntime. getMinimumHeapSize()Deprecated.voidVMRuntime. runFinalizationSync()Deprecated.longVMRuntime. setMinimumHeapSize(long size)Deprecated.booleanVMRuntime. trackExternalAllocation(long size)Deprecated.voidVMRuntime. trackExternalFree(long size)Deprecated. -
Uses of Deprecated in java.io
Classes in java.io with annotations of type Deprecated Modifier and Type Class Description classLineNumberInputStreamDeprecated.UseLineNumberReaderinstead.classStringBufferInputStreamDeprecated.UseStringReaderinstead.Methods in java.io with annotations of type Deprecated Modifier and Type Method Description StringDataInputStream. readLine()Deprecated.This method cannot be trusted to convert bytes to characters correctly.StringObjectInputStream. readLine()Deprecated.UseBufferedReaderinstead.StringByteArrayOutputStream. toString(int hibyte)Deprecated.UseByteArrayOutputStream.toString()instead.URLFile. toURL()Deprecated.UseFile.toURI()andURI.toURL()to correctly escape illegal characters.abstract voidObjectOutputStream.PutField. write(ObjectOutput out)Deprecated.This method is unsafe and may corrupt the target stream.Constructors in java.io with annotations of type Deprecated Constructor Description StreamTokenizer(InputStream is)Deprecated.UseStreamTokenizer(Reader)instead. -
Uses of Deprecated in java.lang
Fields in java.lang with annotations of type Deprecated Modifier and Type Field Description protected booleanSecurityManager. inCheckDeprecated.static Character.UnicodeBlockCharacter.UnicodeBlock. SURROGATES_AREADeprecated.As of Java 5, this block has been replaced byCharacter.UnicodeBlock.HIGH_SURROGATES,Character.UnicodeBlock.HIGH_PRIVATE_USE_SURROGATESandCharacter.UnicodeBlock.LOW_SURROGATES.Methods in java.lang with annotations of type Deprecated Modifier and Type Method Description booleanThreadGroup. allowThreadSuspension(boolean b)Deprecated.Required deprecated methodThreadGroup.suspend().voidSecurityManager. checkMulticast(InetAddress maddr, byte ttl)Deprecated.useSecurityManager.checkMulticast(java.net.InetAddress)instead.protected intSecurityManager. classDepth(String name)Deprecated.protected intSecurityManager. classLoaderDepth()Deprecated.intThread. countStackFrames()Deprecated.The results of this call were never well defined.protected ClassLoaderSecurityManager. currentClassLoader()Deprecated.protected Class<?>SecurityManager. currentLoadedClass()Deprecated.protected Class<?>ClassLoader. defineClass(byte[] classRep, int offset, int length)Deprecated.UseClassLoader.defineClass(String, byte[], int, int)instead.voidThread. destroy()Deprecated.Not implemented.voidString. getBytes(int start, int end, byte[] data, int index)Deprecated.UseString.getBytes()orString.getBytes(String)instead.booleanSecurityManager. getInCheck()Deprecated.InputStreamRuntime. getLocalizedInputStream(InputStream stream)Deprecated.UseInputStreamReaderinstead.OutputStreamRuntime. getLocalizedOutputStream(OutputStream stream)Deprecated.UseOutputStreamWriterinstead.protected booleanSecurityManager. inClass(String name)Deprecated.protected booleanSecurityManager. inClassLoader()Deprecated.static booleanCharacter. isJavaLetter(char c)Deprecated.UseCharacter.isJavaIdentifierStart(char)instead.static booleanCharacter. isJavaLetterOrDigit(char c)Deprecated.UseCharacter.isJavaIdentifierPart(char)instead.static booleanCharacter. isSpace(char c)Deprecated.UseCharacter.isWhitespace(char)instead.voidThread. resume()Deprecated.Only useful in conjunction with deprecated methodThread.suspend().voidThreadGroup. resume()Deprecated.Requires deprecated methodThread.resume().static voidRuntime. runFinalizersOnExit(boolean run)Deprecated.This method is unsafe.static voidSystem. runFinalizersOnExit(boolean flag)Deprecated.This method is unsafe.voidThread. stop()Deprecated.Stopping a thread in this manner is unsafe and can leave your application and the VM in an unpredictable state.voidThread. stop(Throwable throwable)Deprecated.Stopping a thread in this manner is unsafe and can leave your application and the VM in an unpredictable state.voidThreadGroup. stop()Deprecated.Requires deprecated methodThread.stop().voidThread. suspend()Deprecated.May cause deadlocks.voidThreadGroup. suspend()Deprecated.Requires deprecated methodThread.suspend().Constructors in java.lang with annotations of type Deprecated Constructor Description String(byte[] data, int high)Deprecated.UseString(byte[])orString(byte[], String)instead.String(byte[] data, int high, int offset, int byteCount)Deprecated.UseString(byte[], int, int)instead. -
Uses of Deprecated in java.net
Fields in java.net with annotations of type Deprecated Modifier and Type Field Description static intHttpURLConnection. HTTP_SERVER_ERRORDeprecated.UseHttpURLConnection.HTTP_INTERNAL_ERRORinstead.Methods in java.net with annotations of type Deprecated Modifier and Type Method Description static StringURLDecoder. decode(String s)Deprecated.UseURLDecoder.decode(String, String)instead.static StringURLEncoder. encode(String s)Deprecated.UseURLEncoder.encode(String, String)instead.static StringURLConnection. getDefaultRequestProperty(String field)Deprecated.UseURLConnection.getRequestProperty(java.lang.String)instead.protected abstract byteDatagramSocketImpl. getTTL()Deprecated.UseDatagramSocketImpl.getTimeToLive()instead.byteMulticastSocket. getTTL()Deprecated.UseMulticastSocket.getTimeToLive()instead.voidMulticastSocket. send(DatagramPacket packet, byte ttl)Deprecated.UseMulticastSocket.setTimeToLive(int)instead.static voidURLConnection. setDefaultRequestProperty(String field, String value)Deprecated.UseURLConnection.setRequestProperty(String, String)instead.protected abstract voidDatagramSocketImpl. setTTL(byte ttl)Deprecated.UseDatagramSocketImpl.setTimeToLive(int)instead.voidMulticastSocket. setTTL(byte ttl)Deprecated.UseMulticastSocket.setTimeToLive(int)instead.protected voidURLStreamHandler. setURL(URL u, String protocol, String host, int port, String file, String ref)Deprecated.Use setURL(URL, String String, int, String, String, String, String, String) instead.Constructors in java.net with annotations of type Deprecated Constructor Description Socket(String hostName, int port, boolean streaming)Deprecated.UseSocket(String, int)instead of this for streaming sockets or an appropriate constructor ofDatagramSocketfor UDP transport.Socket(InetAddress addr, int port, boolean streaming)Deprecated.UseSocket(InetAddress, int)instead of this for streaming sockets or an appropriate constructor ofDatagramSocketfor UDP transport. -
Uses of Deprecated in java.security
Classes in java.security with annotations of type Deprecated Modifier and Type Interface Description interfaceCertificateDeprecated.UseCertificateinstead.classIdentityclassIdentityScopeclassSignerDeprecated.Use thejava.security.certpackage andPrincipalinstead.Methods in java.security with annotations of type Deprecated Modifier and Type Method Description protected abstract ObjectSignatureSpi. engineGetParameter(String param)Deprecated.There is no generally accepted parameter naming convention.protected abstract voidSignatureSpi. engineSetParameter(String param, Object value)Deprecated.static StringSecurity. getAlgorithmProperty(String algName, String propName)Deprecated.UseAlgorithmParametersandKeyFactoryinstead.ObjectSignature. getParameter(String param)Deprecated.There is no generally accepted parameter naming convention.voidSignature. setParameter(String param, Object value)Deprecated.UseSignature.setParameter(AlgorithmParameterSpec)instead. -
Uses of Deprecated in java.sql
Methods in java.sql with annotations of type Deprecated Modifier and Type Method Description BigDecimalCallableStatement. getBigDecimal(int parameterIndex, int scale)Deprecated.BigDecimalResultSet. getBigDecimal(int columnIndex, int scale)Deprecated.UseResultSet.getBigDecimal(int)orResultSet.getBigDecimal(String)instead.BigDecimalResultSet. getBigDecimal(String columnName, int scale)Deprecated.UseResultSet.getBigDecimal(int)orResultSet.getBigDecimal(String)instead.intTime. getDate()Deprecated.This method is deprecated and must not be used.intTime. getDay()Deprecated.This method is deprecated and must not be used.intDate. getHours()Deprecated.This method is deprecated and must not be used.static PrintStreamDriverManager. getLogStream()Deprecated.UseDriverManager.getLogWriter()instead.intDate. getMinutes()Deprecated.This method is deprecated and must not be used.intTime. getMonth()Deprecated.This method is deprecated and must not be used.intDate. getSeconds()Deprecated.This method is deprecated and must not be used.InputStreamResultSet. getUnicodeStream(int columnIndex)Deprecated.UseResultSet.getCharacterStream(int)instead.InputStreamResultSet. getUnicodeStream(String columnName)Deprecated.UseResultSet.getCharacterStream(int)instead.intTime. getYear()Deprecated.This method is deprecated and must not be used.voidTime. setDate(int i)Deprecated.This method is deprecated and must not be used.voidDate. setHours(int theHours)Deprecated.This method is deprecated and must not be used.static voidDriverManager. setLogStream(PrintStream out)Deprecated.UseDriverManager.setLogWriter(java.io.PrintWriter)instead.voidDate. setMinutes(int theMinutes)Deprecated.This method is deprecated and must not be used.voidTime. setMonth(int i)Deprecated.This method is deprecated and must not be used.voidDate. setSeconds(int theSeconds)Deprecated.This method is deprecated and must not be used.voidPreparedStatement. setUnicodeStream(int parameterIndex, InputStream theInputStream, int length)Deprecated.voidTime. setYear(int i)Deprecated.This method is deprecated and must not be used.Constructors in java.sql with annotations of type Deprecated Constructor Description Date(int theYear, int theMonth, int theDay)Deprecated.Use the constructorDate(long)instead.Time(int theHour, int theMinute, int theSecond)Deprecated.Use the constructorTime(long)instead.Timestamp(int theYear, int theMonth, int theDate, int theHour, int theMinute, int theSecond, int theNano)Deprecated.Use the constructorTimestamp(long)instead. -
Uses of Deprecated in java.util
Methods in java.util with annotations of type Deprecated Modifier and Type Method Description intDate. getDate()Deprecated.UseCalendar.get(Calendar.DATE)instead.intDate. getDay()Deprecated.UseCalendar.get(Calendar.DAY_OF_WEEK)instead.intDate. getHours()Deprecated.UseCalendar.get(Calendar.HOUR_OF_DAY)instead.intDate. getMinutes()Deprecated.UseCalendar.get(Calendar.MINUTE)instead.intDate. getMonth()Deprecated.UseCalendar.get(Calendar.MONTH)instead.intDate. getSeconds()Deprecated.UseCalendar.get(Calendar.SECOND)instead.intDate. getTimezoneOffset()Deprecated.Use(Calendar.get(Calendar.ZONE_OFFSET) + Calendar.get(Calendar.DST_OFFSET)) / 60000instead.intDate. getYear()Deprecated.UseCalendar.get(Calendar.YEAR) - 1900instead.static longDate. parse(String string)Deprecated.UseDateFormatinstead.voidProperties. save(OutputStream out, String comment)Deprecated.This method ignores anyIOExceptionthrown while writing — useProperties.store(java.io.OutputStream, java.lang.String)instead for better exception handling.voidDate. setDate(int day)Deprecated.UseCalendar.set(Calendar.DATE, day)instead.voidDate. setHours(int hour)Deprecated.UseCalendar.set(Calendar.HOUR_OF_DAY, hour)instead.voidDate. setMinutes(int minute)Deprecated.UseCalendar.set(Calendar.MINUTE, minute)instead.voidDate. setMonth(int month)Deprecated.UseCalendar.set(Calendar.MONTH, month)instead.voidDate. setSeconds(int second)Deprecated.UseCalendar.set(Calendar.SECOND, second)instead.voidDate. setYear(int year)Deprecated.UseCalendar.set(Calendar.YEAR, year + 1900)instead.StringDate. toGMTString()Deprecated.UseDateFormatinstead.StringDate. toLocaleString()Deprecated.UseDateFormatinstead.static longDate. UTC(int year, int month, int day, int hour, int minute, int second)Deprecated.Use code like this instead:Calendar cal = new GregorianCalendar(TimeZone.getTimeZone("GMT")); cal.set(year + 1900, month, day, hour, minute, second); cal.getTime().getTime();Constructors in java.util with annotations of type Deprecated Constructor Description Date(int year, int month, int day)Deprecated.UseGregorianCalendar(int, int, int)instead.Date(int year, int month, int day, int hour, int minute)Deprecated.UseGregorianCalendar(int, int, int, int, int)instead.Date(int year, int month, int day, int hour, int minute, int second)Deprecated.UseGregorianCalendar(int, int, int, int, int, int)instead.Date(String string)Deprecated.UseDateFormatinstead. -
Uses of Deprecated in java.util.logging
Fields in java.util.logging with annotations of type Deprecated Modifier and Type Field Description static LoggerLogger. globalDeprecated.This is deadlock-prone. -
Uses of Deprecated in org.apache.http.protocol
Methods in org.apache.http.protocol with annotations of type Deprecated Modifier and Type Method Description protected booleanHttpRequestHandlerRegistry. matchUriRequestPattern(String pattern, String requestUri)Deprecated.useUriPatternMatcherdirectly -
Uses of Deprecated in org.xml.sax
Classes in org.xml.sax with annotations of type Deprecated Modifier and Type Interface Description interfaceAttributeListDeprecated.This interface has been replaced by the SAX2Attributesinterface, which includes Namespace support.interfaceDocumentHandlerDeprecated.This interface has been replaced by the SAX2ContentHandlerinterface, which includes Namespace support.classHandlerBaseDeprecated.This class works with the deprecatedDocumentHandlerinterface.interfaceParserDeprecated.This interface has been replaced by the SAX2XMLReaderinterface, which includes Namespace support. -
Uses of Deprecated in org.xml.sax.helpers
Classes in org.xml.sax.helpers with annotations of type Deprecated Modifier and Type Class Description classAttributeListImplDeprecated.This class implements a deprecated interface,AttributeList; that interface has been replaced byAttributes, which is implemented in theAttributesImplhelper class.classParserFactoryDeprecated.This class works with the deprecatedParserinterface. -
Uses of Deprecated in SQLite.JDBC2z
Methods in SQLite.JDBC2z with annotations of type Deprecated Modifier and Type Method Description BigDecimalJDBCResultSet. getBigDecimal(int columnIndex, int scale)Deprecated.BigDecimalJDBCResultSet. getBigDecimal(String columnName, int scale)Deprecated.InputStreamJDBCResultSet. getUnicodeStream(int columnIndex)Deprecated.InputStreamJDBCResultSet. getUnicodeStream(String columnName)Deprecated.voidJDBCPreparedStatement. setUnicodeStream(int parameterIndex, InputStream x, int length)Deprecated.