| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.beanio.internal.compiler.StreamCompiler
public class StreamCompiler
Compiles a mapping file read from an InputStream into a collection of 
 Stream parsers.
| Constructor Summary | |
|---|---|
| StreamCompiler(ClassLoader classLoader)Constructs a new MappingFactory. | |
| Method Summary | |
|---|---|
| protected  ParserFactory | createParserFactory(String format)Instantiates the factory implementation to create the stream definition. | 
| protected  Collection<Stream> | createStreamDefinitions(BeanIOConfig config)Creates stream definitions from a BeanIO stream mapping configuration. | 
|  ConfigurationLoader | getConfigurationLoader()Returns the mapping configuration loader. | 
| protected  ConfigurationLoader | getDefaultConfigurationLoader()Returns the default mapping configuration loader implementation. | 
|  Collection<Stream> | loadMapping(InputStream in,
            Properties properties)Loads a mapping file. | 
|  void | setConfigurationLoader(ConfigurationLoader configurationLoader)Sets the mapping configuration loader. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public StreamCompiler(ClassLoader classLoader)
classLoader - the ClassLoader to use for resolving class names| Method Detail | 
|---|
public Collection<Stream> loadMapping(InputStream in,
                                      Properties properties)
                               throws IOException,
                                      BeanIOConfigurationException
in - the InputStream to load the mapping file fromproperties - the Properties
Stream parsers configured in the loaded mapping file
IOException - if an I/O error occurs reading the mapping file
BeanIOConfigurationException - if the mapping file is invalidprotected ConfigurationLoader getDefaultConfigurationLoader()
protected Collection<Stream> createStreamDefinitions(BeanIOConfig config)
                                              throws BeanIOConfigurationException
config - the BeanIO stream mapping configuration
BeanIOConfigurationException - if a configuration setting is invalidprotected ParserFactory createParserFactory(String format)
format - the stream format
public ConfigurationLoader getConfigurationLoader()
public void setConfigurationLoader(ConfigurationLoader configurationLoader)
configurationLoader - the mapping configuration loader| 
 | BeanIO 2.0.4 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||