程序包 weka.core.xml
类 KOML
java.lang.Object
weka.core.xml.KOML
- 所有已实现的接口:
RevisionHandler
This class is a helper class for XML serialization using KOML .
KOML does not need to be present, since the class-calls are done generically via Reflection.
- 版本:
- $Revision 1.0$
- 作者:
- FracPete (fracpete at waikato dot ac dot nz)
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明Returns the revision string.static boolean
returns whether KOML is present or not, i.e.static Object
reads the XML-serialized object from the given filestatic Object
read
(InputStream stream) reads the XML-serialized object from a streamstatic Object
reads the XML-serialized object from the given filestatic boolean
write the XML-serialized object to the given filestatic boolean
write
(OutputStream stream, Object o) writes the XML-serialized object to a streamstatic boolean
writes the XML-serialized object to the given file
-
字段详细资料
-
FILE_EXTENSION
the extension for KOML files (including '.')- 另请参阅:
-
-
构造器详细资料
-
KOML
public KOML()
-
-
方法详细资料
-
isPresent
public static boolean isPresent()returns whether KOML is present or not, i.e. whether the classes are in the classpath or not- 返回:
- whether KOML is available
-
read
reads the XML-serialized object from the given file- 参数:
filename
- the file to deserialize the object from- 返回:
- the deserialized object
- 抛出:
Exception
- if something goes wrong while reading from the file
-
read
reads the XML-serialized object from the given file- 参数:
file
- the file to deserialize the object from- 返回:
- the deserialized object
- 抛出:
Exception
- if something goes wrong while reading from the file
-
read
reads the XML-serialized object from a stream- 参数:
stream
- the stream to deserialize the object from- 返回:
- the deserialized object
- 抛出:
Exception
- if something goes wrong while reading from the stream
-
write
writes the XML-serialized object to the given file- 参数:
filename
- the file to serialize the object too
- the object to write to the file- 返回:
- whether writing was successful or not
- 抛出:
Exception
- if something goes wrong while writing to the file
-
write
write the XML-serialized object to the given file- 参数:
file
- the file to serialize the object too
- the object to write to the file- 返回:
- whether writing was successful or not
- 抛出:
Exception
- if something goes wrong while writing to the file
-
write
writes the XML-serialized object to a stream- 参数:
stream
- the stream to serialize the object too
- the object to write to the stream- 返回:
- whether writing was successful or not
- 抛出:
Exception
- if something goes wrong while writing to the stream
-
getRevision
Returns the revision string.- 指定者:
getRevision
在接口中RevisionHandler
- 返回:
- the revision
-