JavaTM 2 Platform
Standard Ed. 6

介面 java.beans.ExceptionListener
的使用

使用 ExceptionListener 的軟體套件
java.beans 包含與開發 beans 有關的類別,即基於 JavaBeansTM 架構的元件。 
 

java.beans 中 ExceptionListener 的使用
 

返回 ExceptionListener 的 java.beans 中的方法
 ExceptionListener Encoder.getExceptionListener()
          獲得此串流的異常處理程序。
 ExceptionListener XMLDecoder.getExceptionListener()
          獲得此串流的異常處理程序。
 

參數型別為 ExceptionListener 的 java.beans 中的方法
 void Encoder.setExceptionListener(ExceptionListener exceptionListener)
          將此串流的異常處理程序設置為 exceptionListener。
 void XMLDecoder.setExceptionListener(ExceptionListener exceptionListener)
          將此串流的異常處理程序設置為 exceptionListener。
 

參數型別為 ExceptionListener 的 java.beans 中的建構子
XMLDecoder(InputStream in, Object owner, ExceptionListener exceptionListener)
          創建一個新的輸入串流,以讀取由 XMLEncoder 類別創建的檔案。
XMLDecoder(InputStream in, Object owner, ExceptionListener exceptionListener, ClassLoader cl)
          創建一個新的輸入串流,以讀取由 XMLEncoder 類別創建的檔案。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

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