站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 4.1.0

Properties.Reader (NetBeans Debugger Core API) - NetBeans API Javadoc 4.1.0

 

org.netbeans.api.debugger
Interface Properties.Reader

Enclosing interface:
Properties

public static interface Properties.Reader

This class helps to store and read custom types using Properties.setObject(java.lang.String, java.lang.Object) and Properties.getObject(java.lang.String, java.lang.Object) methods. Implementations of this class should be stored in "META_INF\debugger" folder.


Method Summary
 String[] getSupportedClassNames()
          Returns array of classNames supported by this reader.
 Object read(String className, Properties properties)
          Reads object with given className.
 void write(Object object, Properties properties)
          Writes given object to given properties subfolder.
 

Method Detail

getSupportedClassNames

public String[] getSupportedClassNames()
Returns array of classNames supported by this reader.

Returns:
array of classNames supported by this reader

read

public Object read(String className,
                   Properties properties)
Reads object with given className.

Parameters:
className - a name of class to be readed
properties - a properties subfloder containing properties for this object
Returns:
a new instance of className class

write

public void write(Object object,
                  Properties properties)
Writes given object to given properties subfolder.

Parameters:
object - a object to be saved
properties - a properties subfolder to be used

 

Built on May 4 2005.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.