public class ResourceReaderFactoryBean extends AbstractFactoryBean<String>
loggerOBJECT_TYPE_ATTRIBUTE| Constructor and Description |
|---|
ResourceReaderFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected String |
createInstance() |
Class<String> |
getObjectType() |
void |
setCharacterEncoding(String charset)
Configure the character encoding for the resource.
|
void |
setResource(Resource resource)
Configure the resource containing the
value. |
destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingletonpublic void setResource(Resource resource)
value.resource - resource to readpublic void setCharacterEncoding(String charset)
UTF-8.charset - resource charsetpublic Class<String> getObjectType()
getObjectType in interface FactoryBean<String>getObjectType in class AbstractFactoryBean<String>public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class AbstractFactoryBean<String>Exceptionprotected String createInstance() throws IOException
createInstance in class AbstractFactoryBean<String>IOExceptionCopyright © 2020. All rights reserved.