|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jsefa.csv.CsvIOFactory
public abstract class CsvIOFactory
Factory for creating CsvSerializer
s and CsvDeserializer
s.
This is the abstract base class for concrete factories. Each subclass must provide a static method
create(CsvConfiguration config)
as well as implement the abstract methods.
This class provides a static factory method createFactory(CsvConfiguration)
to create an instance of a
concrete CsvIOFactory
.
This class also provides static facade methods hiding the details of creating entry points based on annotated object types.
Constructor Summary | |
---|---|
CsvIOFactory()
|
Method Summary | |
---|---|
abstract CsvDeserializer |
createDeserializer()
Creates a new Deserializer . |
static CsvIOFactory |
createFactory(Class<?>... objectTypes)
Creates a new CsvIOFactory for CsvSerializer s and
CsvDeserializer s which can handle objects of the given object types. |
static CsvIOFactory |
createFactory(CsvConfiguration config)
Creates a new CsvIOFactory for CsvSerializer s and
CsvDeserializer s using the given configuration. |
static CsvIOFactory |
createFactory(CsvConfiguration config,
Class<?>... objectTypes)
Creates a new CsvIOFactory for CsvSerializer s and
CsvDeserializer s which can handle objects of the given object types as well as those object
types for which entry points are defined in the config . |
abstract CsvSerializer |
createSerializer()
Creates a new Serializer . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CsvIOFactory()
Method Detail |
---|
public static CsvIOFactory createFactory(CsvConfiguration config)
CsvIOFactory
for CsvSerializer
s and
CsvDeserializer
s using the given configuration.
Note that the configuration should provide a non empty collection of entry points.
You can use the methods createFactory(Class...)
or
createFactory(CsvConfiguration, Class...)
if you want to get the entry points automatically created
from annotated classes.
config
- the configuration object. It will be copied so that the given one can be modified or reused.
CsvIOFactory
factory
IOFactoryException
public static CsvIOFactory createFactory(Class<?>... objectTypes)
CsvIOFactory
for CsvSerializer
s and
CsvDeserializer
s which can handle objects of the given object types.
It creates a new CsvConfiguration
with entry points generated from the annotations found in the
given object types.
objectTypes
- object types for which entry points should be created from annotations
CsvIOFactory
factory
IOFactoryException
public static CsvIOFactory createFactory(CsvConfiguration config, Class<?>... objectTypes)
CsvIOFactory
for CsvSerializer
s and
CsvDeserializer
s which can handle objects of the given object types as well as those object
types for which entry points are defined in the config
.
config
- the configuration object. It will be copied so that the given one can be modified or reused.objectTypes
- object types for which entry points should be created from annotations
CsvIOFactory
factory
IOFactoryException
public abstract CsvSerializer createSerializer()
Serializer
.
createSerializer
in interface IOFactory
Serializer
public abstract CsvDeserializer createDeserializer()
Deserializer
.
createDeserializer
in interface IOFactory
Deserializer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |