Package org.exoplatform.commons.utils
Class PropertyResolverReader
java.lang.Object
java.io.Reader
org.exoplatform.commons.utils.PropertyResolverReader
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyResolverReader(Reader delegate) PropertyResolverReader(Reader delegate, int bufferSize) -
Method Summary
Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, read, ready, reset, skip, transferTo
-
Constructor Details
-
PropertyResolverReader
-
PropertyResolverReader
-
-
Method Details
-
read
- Specified by:
readin classReader- Throws:
IOException
-
resolve
Resolves a property value, this method is called during the stream analysis. When the returned value is null, the property declaration will be read by the client (i.e ${a} will be read as ${a}).- Parameters:
name- the property name- Returns:
- the property value
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-