public final class SerializerFactory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
JSON_SERIALIZE_FORMAT
variable JSON_SERIALIZE_FORMAT
|
static String |
XML_SERIALIZE_FORMAT
variable XML_SERIALIZE_FORMAT
|
Modifier and Type | Method and Description |
---|---|
static SerializerFactory |
getInstance()
Method to get the SerializerFactory instance
|
static IEntitySerializer |
getSerializer(String serializeFormat)
Method to get the corresponding serialize instance for the given serializer format
|
static boolean |
isValidSerializeFormat(String serializeFormat)
Method to validate whether the given serialization format is correct
|
public static final String XML_SERIALIZE_FORMAT
public static final String JSON_SERIALIZE_FORMAT
public static SerializerFactory getInstance()
public static IEntitySerializer getSerializer(String serializeFormat) throws SerializationException
serializerFormat
- SerializationException
public static boolean isValidSerializeFormat(String serializeFormat) throws SerializationException
serializeFormat
- SerializationException
Copyright © 2021. All Rights Reserved.