|
BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ParserFactory
A ParserFactory is used to convert a stream configuration (i.e. StreamConfig)
into a stream parser (i.e. Stream).
A new parser factory is used to parse each stream configuration, thus implementations need not worry about thread safety.
All properties (e.g. classLoader) are set before createStream(StreamConfig) is invoked.
| Method Summary | |
|---|---|
Stream |
createStream(StreamConfig config)
Creates a new stream parser from a given stream configuration. |
void |
setClassLoader(ClassLoader classLoader)
Sets the ClassLoader to use for resolving configured class names. |
void |
setTypeHandlerFactory(TypeHandlerFactory typeHandlerFactory)
Sets the type handler factory to use for resolving type handlers. |
| Method Detail |
|---|
void setClassLoader(ClassLoader classLoader)
ClassLoader to use for resolving configured class names.
classLoader - the ClassLoadervoid setTypeHandlerFactory(TypeHandlerFactory typeHandlerFactory)
typeHandlerFactory - the TypeHandlerFactory
Stream createStream(StreamConfig config)
throws BeanIOConfigurationException
config - the stream configuration
Stream
BeanIOConfigurationException - if the configuration is invalid
|
BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||