JavaTM 2 Platform
Standard Ed. 6

類別 java.lang.ClassCastException
的使用

使用 ClassCastException 的軟體套件
javax.rmi 包含 RMI-IIOP 的使用者 API。 
javax.rmi.CORBA 包含用於 RMI-IIOP 的可移植性 API。 
org.w3c.dom.bootstrap   
org.xml.sax.helpers 此套件包含“說明器”類別,其中包括對引導基於 SAX 的應用程序的支持。 
 

javax.rmi 中 ClassCastException 的使用
 

拋出 ClassCastException 的 javax.rmi 中的方法
static Object PortableRemoteObject.narrow(Object narrowFrom, Class narrowTo)
          檢查以確保遠端或抽象介面型別的物件可以強制轉換為所需的型別。
 

javax.rmi.CORBA 中 ClassCastException 的使用
 

拋出 ClassCastException 的 javax.rmi.CORBA 中的方法
 Object PortableRemoteObjectDelegate.narrow(Object narrowFrom, Class narrowTo)
          PortableRemoteObject.narrow(java.lang.Object, java.lang.Class) 的委託調用。
 

org.w3c.dom.bootstrap 中 ClassCastException 的使用
 

拋出 ClassCastException 的 org.w3c.dom.bootstrap 中的方法
static DOMImplementationRegistry DOMImplementationRegistry.newInstance()
          獲得 DOMImplementationRegistry 的新實例。
 

org.xml.sax.helpers 中 ClassCastException 的使用
 

拋出 ClassCastException 的 org.xml.sax.helpers 中的方法
static Parser ParserFactory.makeParser()
          已過時。 使用 "org.xml.sax.parser" 系統屬性創建一個新的 SAX 解析器。
static Parser ParserFactory.makeParser(String className)
          已過時。 使用提供的類別名創建一個新的 SAX 解析器物件。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。