|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.ide.util.macro.FileMacroConverter
public class FileMacroConverter
FileMacroConverter - converts macros a file at a time. This file uses a source file (i.e. Template), a destination file, and a Map of macros (macro name/value pair). The files can be a Reader/Writer or a File object.
File
, Reader
, Writer
, java.util.Map;
Field Summary |
---|
Fields inherited from interface oracle.ide.util.macro.MacroConverter |
---|
AT_CONVERTER, BATCH_CONVERTER, MAKE_CONVERTER, SHELL_CONVERTER |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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.
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1.5.0) E13403-06 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |