public class FileMacroConverter extends java.lang.Object implements MacroConverter
File
,
Reader
,
Writer
,
java.util.Map;
AT_CONVERTER, BATCH_CONVERTER, MAKE_CONVERTER, SHELL_CONVERTER
Modifier and Type | Method and Description |
---|---|
boolean |
expandFile(java.io.File src,
java.io.File dest,
java.util.Map macros)
Expands the macros in a file.
|
boolean |
expandFile(java.io.File src,
java.io.Writer dest,
java.util.Map macros)
Expands the macros in a file.
|
boolean |
expandFile(java.io.Reader src,
java.io.Writer dest,
java.util.Map macros)
Expands the macros in a file.
|
static FileMacroConverter |
getConverter(int converterType)
Factory method to obtain an instance of FileMacroConverter.
|
public boolean expandFile(java.io.File src, java.io.Writer dest, java.util.Map macros)
Note: This method will close the Writer after it uses it.
src
- - Source Filedest
- - Desitination filemacros
- - name/value pair of the macros to expandpublic boolean expandFile(java.io.File src, java.io.File dest, java.util.Map macros)
src
- - Source Filedest
- - Desitination filemacros
- - name/value pair of the macros to expandpublic boolean expandFile(java.io.Reader src, java.io.Writer dest, java.util.Map macros)
Note: This method will close the Writer after it uses it.
src
- - Source Filedest
- - Desitination filemacros
- - name/value pair of the macros to expandpublic static FileMacroConverter getConverter(int converterType)
converterType
- - Type of converter to use. The types are defined
as static constants in the MacroConverter interface.