com.rapidminer.operator.tools
Enum SerializationType

java.lang.Object
  extended by java.lang.Enum<SerializationType>
      extended by com.rapidminer.operator.tools.SerializationType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<SerializationType>

public enum SerializationType
extends java.lang.Enum<SerializationType>

Encapsulates some standard ways to serialize and deserialize objects from streams. NOTE: When adding new enum constants, don't change the ordering of the old, since the ordinal value will be used to identify the serialization type.

Author:
Simon Fischer

Enum Constant Summary
JAVA_BINARY
          Plain binary java serialization using Object{In/Out}putStream.
STREAMED_EXAMPLE_SET_DENSE
           
STREAMED_EXAMPLE_SET_DENSE_2
           
STREAMED_EXAMPLE_SET_DENSE_3
           
XML
          Uses xstream XML serialization.
XML_ZIPPED
          Uses xstream XML serialization wrapped in a GZip stream.
 
Field Summary
static SerializationType STREAMED_EXAMPLE_SET_DENSE_CURRENT_VERSION
           
 
Method Summary
 BodySerializer getBodySerializer()
           
static SerializationType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static SerializationType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

JAVA_BINARY

public static final SerializationType JAVA_BINARY
Plain binary java serialization using Object{In/Out}putStream.


XML

public static final SerializationType XML
Uses xstream XML serialization.


XML_ZIPPED

public static final SerializationType XML_ZIPPED
Uses xstream XML serialization wrapped in a GZip stream.


STREAMED_EXAMPLE_SET_DENSE

public static final SerializationType STREAMED_EXAMPLE_SET_DENSE

STREAMED_EXAMPLE_SET_DENSE_2

public static final SerializationType STREAMED_EXAMPLE_SET_DENSE_2

STREAMED_EXAMPLE_SET_DENSE_3

public static final SerializationType STREAMED_EXAMPLE_SET_DENSE_3
Field Detail

STREAMED_EXAMPLE_SET_DENSE_CURRENT_VERSION

public static SerializationType STREAMED_EXAMPLE_SET_DENSE_CURRENT_VERSION
Method Detail

values

public static SerializationType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SerializationType c : SerializationType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SerializationType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getBodySerializer

public BodySerializer getBodySerializer()


Copyright © 2001-2009 by Rapid-I