public class VBAMacroExtractor extends Object
| Constructor and Description |
|---|
VBAMacroExtractor() |
| Modifier and Type | Method and Description |
|---|---|
void |
extract(File input,
File outputDir)
Extracts the VBA modules from a macro-enabled office file and writes them
to
.vba files in outputDir. |
void |
extract(File input,
File outputDir,
String extension)
Extracts the VBA modules from a macro-enabled office file and writes them
to files in
outputDir. |
static void |
main(String[] args) |
public static void main(String[] args) throws IOException
IOExceptionpublic void extract(File input, File outputDir, String extension) throws IOException
outputDir.
Creates the outputDir, directory, including any necessary but
nonexistent parent directories, if outputDir does not exist.
If outputDir is null, writes the contents to standard out instead.input - the macro-enabled office file.outputDir - the directory to write the extracted VBA modules to.extension - file extension of the extracted VBA modulesIOExceptionpublic void extract(File input, File outputDir) throws IOException
.vba files in outputDir.
Creates the outputDir, directory, including any necessary but
nonexistent parent directories, if outputDir does not exist.
If outputDir is null, writes the contents to standard out instead.input - the macro-enabled office file.outputDir - the directory to write the extracted VBA modules to.IOException