Overview Package Class Use Source Tree Index Deprecated About
GNU Classpath (0.95)
Frames | No Frames

Deprecated API

Contents

Deprecated Interfaces

AttributeList
This interface has been replaced by the SAX2 Attributes interface, which includes Namespace support.
Certificate
use java.security.cert instead
DocumentHandler
This interface has been replaced by the SAX2 ContentHandler interface, which includes Namespace support.
Parser
This interface has been replaced by the SAX2 XMLReader interface, which includes Namespace support.

Deprecated Classes

AccessibleResourceBundle
this class is no longer used
AttributeListImpl
This class implements a deprecated interface, AttributeList; that interface has been replaced by Attributes, which is implemented in the AttributesImpl helper class.
DefaultTextUI
as of 1.5 use BasicTextUI instead
HandlerBase
This class works with the deprecated DocumentHandler interface.
Identity
Replaced by java.security.KeyStore, the java.security.cert package, and java.security.Principal.
IdentityScope
Use java.security.KeyStore, the java.security.cert package, and java.security.Principal.
LineNumberInputStream
This class is deprecated in favor if LineNumberReader because it operates on ASCII bytes instead of an encoded character stream.
ParserFactory
This class works with the deprecated Parser interface.
Policy
The classes java.security.Policy and java.security.ProtectionDomain provide the functionality of this class.
Principal
by CORBA 2.2.
PrincipalHolder
by CORBA 2.2.
Signer
Replaced by java.security.KeyStore, the java.security.cert package, and java.security.Principal.
TableView.TableCell
Table cells are now rendered by an arbitrary View implementation.

Deprecated Exceptions

ServerRuntimeException
no replacement
SkeletonMismatchException
no replacement.
SkeletonNotFoundException
no replacement.

Deprecated Fields

javax.swing.plaf.basic.BasicSplitPaneUI.keyboardDownRightListener
The handler for down and right key presses.
javax.swing.plaf.basic.BasicSplitPaneUI.keyboardUpLeftListener
The handler for up and left key presses.
java.lang.Character.UnicodeBlock.UnicodeBlockSURROGATES_AREA
As of 1.5, the three areas, HIGH_SURROGATES, HIGH_PRIVATE_USE_SURROGATES and LOW_SURROGATES, as defined by the Unicode standard, should be used in preference to this.
java.awt.datatransfer.DataFlavor.plainTextFlavor
The charset unicode is platform specific and InputStream deals with bytes not chars.
javax.swing.text.html.FormView.SUBMIT
As of JDK1.3 the value is fetched from the UIManager property FormView.submitButtonText.
javax.swing.text.html.FormView.RESET
As of JDK1.3 the value is fetched from the UIManager property FormView.resetButtonText.
java.awt.Frame.DEFAULT_CURSOR
Replaced by Cursor.DEFAULT_CURSOR instead.
java.awt.Frame.CROSSHAIR_CURSOR
Use Cursor.CROSSHAIR_CURSOR instead.
java.awt.Frame.TEXT_CURSOR
Use Cursor.TEXT_CURSOR instead.
java.awt.Frame.WAIT_CURSOR
Use Cursor.WAIT_CURSOR.
java.awt.Frame.SW_RESIZE_CURSOR
Use Cursor.SW_RESIZE_CURSOR instead.
java.awt.Frame.SE_RESIZE_CURSOR
Use Cursor.SE_RESIZE_CURSOR instead.
java.awt.Frame.NW_RESIZE_CURSOR
Use Cursor.NW_RESIZE_CURSOR instead.
java.awt.Frame.NE_RESIZE_CURSOR
Use Cursor.NE_RESIZE_CURSOR instead.
java.awt.Frame.N_RESIZE_CURSOR
Use Cursor.N_RESIZE_CURSOR instead.
java.awt.Frame.S_RESIZE_CURSOR
Use Cursor.S_RESIZE_CURSOR instead.
java.awt.Frame.E_RESIZE_CURSOR
Use Cursor.E_RESIZE_CURSOR instead.
java.awt.Frame.W_RESIZE_CURSOR
Use Cursor.W_RESIZE_CURSOR instead.
java.awt.Frame.HAND_CURSOR
Use Cursor.HAND_CURSOR instead.
java.awt.Frame.MOVE_CURSOR
Use Cursor.MOVE_CURSOR instead.

Deprecated Methods

java.awt.BorderLayout.addLayoutComponent(String,Component)
This method is deprecated in favor of addLayoutComponent(Component, Object).
java.sql.CallableStatement.getBigDecimal(int,int)
Use getBigDecimal(int index) or getBigDecimal(String name) instead.
java.awt.CardLayout.addLayoutComponent(String,Component)
This method is deprecated in favor of addLayoutComponent(Component, Object).
java.awt.CheckboxGroup.getCurrent()
This method is deprecated in favor of getSelectedCheckbox().
java.awt.CheckboxGroup.setCurrent(Checkbox)
This method is deprecated in favor of setSelectedCheckbox().
java.awt.Choice.countItems()
This method is deprecated in favor of getItemCount.
java.awt.Component.getPeer()
user programs should not directly manipulate peers; use isDisplayable() instead
java.awt.Component.action(Event,Object)
in classes which support actions, use processActionEvent(ActionEvent) instead
java.awt.datatransfer.DataFlavor.equals(String)
Not compatible with hashCode().
java.util.Date.UTC(int,int,int,int,int,int)
Use Calendar with a UTC TimeZone instead.
java.util.Date.getTimezoneOffset()
use Calendar.get(Calendar.ZONE_OFFSET)+Calendar.get(Calendar.DST_OFFSET) instead.
java.util.Date.toLocaleString()
Use DateFormat.format(Date)
java.util.Date.toGMTString()
Use DateFormat.format(Date) with a GMT TimeZone.
java.util.Date.parse(String)
Use DateFormat.parse(String)
java.util.Date.getYear()
Use Calendar instead of Date, and use get(Calendar.YEAR) instead.
java.util.Date.setYear(int)
Use Calendar instead of Date, and use set(Calendar.YEAR, year) instead.
java.util.Date.getMonth()
Use Calendar instead of Date, and use get(Calendar.MONTH) instead.
java.util.Date.setMonth(int)
Use Calendar instead of Date, and use set(Calendar.MONTH, month) instead.
java.util.Date.getDate()
Use Calendar instead of Date, and use get(Calendar.DATE) instead.
java.util.Date.setDate(int)
Use Calendar instead of Date, and use set(Calendar.DATE, date) instead.
java.util.Date.getDay()
Use Calendar instead of Date, and use get(Calendar.DAY_OF_WEEK) instead.
java.util.Date.getHours()
Use Calendar instead of Date, and use get(Calendar.HOUR_OF_DAY) instead.
java.util.Date.setHours(int)
Use Calendar instead of Date, and use set(Calendar.HOUR_OF_DAY, hours) instead.
java.util.Date.getMinutes()
Use Calendar instead of Date, and use get(Calendar.MINUTE) instead.
java.util.Date.setMinutes(int)
Use Calendar instead of Date, and use set(Calendar.MINUTE, minutes) instead.
java.util.Date.getSeconds()
Use Calendar instead of Date, and use get(Calendar.SECOND) instead.
java.util.Date.setSeconds(int)
Use Calendar instead of Date, and use set(Calendar.SECOND, seconds) instead.
java.sql.DriverManager.getLogStream()
Use getLogWriter() instead.
java.awt.FontMetrics.getMaxDecent()
This method is deprecated in favor of getMaxDescent().
java.awt.Frame.getCursorType()
Use Component.getCursor() instead.
java.awt.Frame.setCursor(int)
Use Component.setCursor(Cursor) instead.
java.awt.Graphics.getClipRect()
This method is deprecated in favor of getClipBounds().
javax.swing.JComponent.isManagingFocus()
1.4 Use Component.setFocusTraversalKeys(int, Set) and Container.setFocusCycleRoot(boolean) instead
javax.swing.JComponent.requestDefaultFocus()
Use requestFocus() on the default component provided from the FocusTraversalPolicy instead.
javax.swing.JMenuBar.getComponentAtIndex(int)
Replaced by getComponent(int)
javax.swing.JRootPane.getMenuBar()
Replaced by getJMenuBar()
javax.swing.JTable.createScrollPaneForTable(JTable)
1.0.2, replaced by new JScrollPane(JTable)
javax.swing.KeyStroke.getKeyStroke(char,boolean)
Use getKeyStroke(char) This method, unlike all the other factory methods on this object, returns a non-cached, non-shared object.
java.awt.List.countItems()
This method is deprecated in favor of getItemCount()
java.awt.List.allowsMultipleSelections()
This method is deprecated in favor of isMultipleMode().
java.awt.List.minimumSize()
This method is deprecated in favor of getMinimumSize.
java.awt.List.minimumSize(int)
This method is deprecated in favor of getMinimumSize(int)>
java.awt.List.preferredSize()
This method is deprecated in favor of getPreferredSize.
java.awt.List.preferredSize(int)
This method is deprecated in favor of getPreferredSize(int)>
java.awt.List.addItem(String)
Use add() instead.
java.awt.List.delItems(int,int)
This method is deprecated for some unknown reason.
java.awt.List.clear()
This method is deprecated in favor of removeAll().
java.awt.List.isSelected(int)
This method is deprecated in favor of isIndexSelected(int).
javax.management.MBeanServer.deserialize(ObjectName,byte[])
getClassLoaderFor(ObjectName) should be used to obtain the class loader of the bean, which can then be used to perform deserialization in the user's code.
javax.management.MBeanServer.deserialize(String,byte[])
getClassLoaderRepository() should be used to obtain the class loading repository, which can then be used to obtain the Class instance and deserialize the array using its class loader.
javax.management.MBeanServer.deserialize(String,ObjectName,byte[])
getClassLoader(ObjectName can be used to obtain the named class loader and deserialize the array.
java.awt.Menu.countItems()
As of JDK 1.1, replaced by getItemCount().
java.awt.MenuBar.countMenus()
This method is deprecated in favor of getMenuCount().
java.awt.MenuComponent.postEvent(Event)
Deprecated in favor of dispatchEvent().
java.awt.MenuItem.enable(boolean)
This method is deprecated in favor of setEnabled().
java.awt.MenuItem.enable()
This method is deprecated in favor of setEnabled().
java.awt.MenuItem.disable()
This method is deprecated in favor of setEnabled().
java.net.MulticastSocket.getTTL()
1.2 Replaced by getTimeToLive()
java.net.MulticastSocket.setTTL(byte)
1.2 Replaced by setTimeToLive
org.omg.CORBA.ORB.create_recursive_sequence_tc(int,int)
It is easier and clearler to use a combination of create_recursive_tc and create_sequence_tc instead.
java.sql.ResultSet.getUnicodeStream(int)
Use getCharacterStream instead.
java.sql.ResultSet.getUnicodeStream(String)
Use getCharacterStream instead.
java.lang.Runtime.runFinalizersOnExit(boolean)
never rely on finalizers to do a clean, thread-safe, mop-up from your code
java.lang.Runtime.getLocalizedInputStream(InputStream)
InputStreamReader is the preferred way to read local encodings
java.lang.Runtime.getLocalizedOutputStream(OutputStream)
OutputStreamWriter is the preferred way to write local encodings
java.awt.Scrollbar.getVisible()
This method is deprecated in favor of getVisibleAmount().
java.awt.Scrollbar.getLineIncrement()
This method is deprecated in favor of getUnitIncrement().
java.awt.Scrollbar.setLineIncrement(int)
This method is deprecated in favor of setUnitIncrement().
java.awt.Scrollbar.getPageIncrement()
This method is deprecated in favor of getBlockIncrement().
java.awt.Scrollbar.setPageIncrement(int)
This method is deprecated in favor of setBlockIncrement().
java.awt.ScrollPane.layout()
This method is deprecated in favor of doLayout().
java.security.Security.getAlgorithmProperty(String,String)
Use the provider-based and algorithm-independent AlgorithmParameters and KeyFactory engine classes instead.
java.lang.String.getBytes(int,int,dst[],int)
use getBytes(), which uses a char to byte encoder
javax.swing.SwingUtilities.findFocusOwner(Component)
1.4 Replaced by KeyboardFocusManager.getFocusOwner().
java.lang.System.runFinalizersOnExit(boolean)
never rely on finalizers to do a clean, thread-safe, mop-up from your code
javax.swing.text.TableView.createTableCell(Element)
Table cells are now rendered by an arbitrary View implementation.
javax.swing.text.TableView.TableCell.getColumnCount()
Table cells are now rendered by an arbitrary View implementation.
javax.swing.text.TableView.TableCell.getRowCount()
Table cells are now rendered by an arbitrary View implementation.
javax.swing.text.TableView.TableCell.setGridLocation(int,int)
Table cells are now rendered by an arbitrary View implementation.
javax.swing.text.TableView.TableCell.getGridRow()
Table cells are now rendered by an arbitrary View implementation.
javax.swing.text.TableView.TableCell.getGridColumn()
Table cells are now rendered by an arbitrary View implementation.
java.awt.TextArea.minimumSize()
This method is deprecated in favor of getMinimumSize ().
java.awt.TextArea.minimumSize(int,int)
This method is deprecated in favor of getMinimumSize (int, int).
java.awt.TextArea.preferredSize()
This method is deprecated in favor of getPreferredSize ().
java.awt.TextArea.preferredSize(int,int)
This method is deprecated in favor of getPreferredSize (int, int).
java.awt.TextArea.appendText(String)
This method is deprecated in favor of append ().
java.awt.TextArea.insertText(String,int)
This method is deprecated in favor of insert ().
java.awt.TextArea.replaceText(String,int,int)
This method is deprecated in favor of replaceRange ().
java.awt.TextField.setEchoCharacter(char)
This method is deprecated in favor of setEchoChar()
java.awt.TextField.minimumSize()
This method is deprecated in favor of getMinimumSize().
java.awt.TextField.minimumSize(int)
This method is deprecated in favor of getMinimumSize(int).
java.awt.TextField.preferredSize()
This method is deprecated in favor of getPreferredSize().
java.awt.TextField.preferredSize(int)
This method is deprecated in favor of getPreferredSize(int).
java.lang.Thread.countStackFrames()
pointless, since suspend is deprecated
java.lang.Thread.destroy()
This method was originally intended to simply destroy the thread without performing any form of cleanup operation.
java.lang.Thread.resume()
pointless, since suspend is deprecated
java.lang.Thread.stop()
unsafe operation, try not to use
java.lang.Thread.stop(Throwable)
unsafe operation, try not to use
java.lang.Thread.suspend()
unsafe operation, try not to use
java.lang.ThreadGroup.stop()
unsafe operation, try not to use
java.lang.ThreadGroup.suspend()
unsafe operation, try not to use
java.lang.ThreadGroup.resume()
pointless, since suspend is deprecated
java.lang.ThreadGroup.allowThreadSuspension(boolean)
pointless, since suspend is deprecated
java.net.URLConnection.setDefaultRequestProperty(String,String)
1.3 The method setRequestProperty should be used instead.
java.net.URLConnection.getDefaultRequestProperty(String)
1.3 The method getRequestProperty should be used instead.
java.net.URLStreamHandler.setURL(URL,String,String,int,String,String)
1.2 Please use #setURL(URL,String,String,int,String,String,String,String);
javax.management.ValueExp.setMBeanServer(MBeanServer)
This method is superfluous, as the ValueExp can access the server using QueryEval.getMBeanServer().
java.rmi.dgc.VMID.isUnique()
VMID's are more or less always reliable.
java.awt.Window.applyResourceBundle(ResourceBundle)
replaced by Component.applyComponentOrientation.

Deprecated Constructors

java.util.Date.Date(int,int,int)
use new GregorianCalendar(year+1900, month, day) instead.
java.util.Date.Date(int,int,int,int,int)
use new GregorianCalendar(year+1900, month, day, hour, min) instead.
java.util.Date.Date(int,int,int,int,int,int)
use new GregorianCalendar(year+1900, month, day, hour, min, sec) instead.
java.util.Date.Date(String)
use java.text.DateFormat.parse(s) instead.
java.net.Socket.Socket(String,int,boolean)
Use the DatagramSocket class to create datagram oriented sockets.
java.net.Socket.Socket(InetAddress,int,boolean)
Use the DatagramSocket class to create datagram oriented sockets.
javax.swing.text.TableView.TableCell.TableCell(Element)
Table cells are now rendered by an arbitrary View implementation.
org.omg.CORBA.TCKind.TCKind(int)
it is recommended to use from_int(int) that reuses existing TCKind object instead of allocating the new instance.
Overview Package Class Use Source Tree Index Deprecated About
GNU Classpath (0.95)

AltStyle によって変換されたページ (->オリジナル) /