public class VBAMacroExtractor
extends java.lang.Object
Constructor and Description |
---|
VBAMacroExtractor() |
Modifier and Type | Method and Description |
---|---|
void |
extract(java.io.File input, java.io.File outputDir)
Extracts the VBA modules from a macro-enabled office file and writes them to
.vba files in
outputDir.
(从启用宏的 office 文件中提取 VBA 模块并将它们写入 outputDir 中的 .vba 文件。)
|
void |
extract(java.io.File input, java.io.File outputDir, java.lang.String extension)
Extracts the VBA modules from a macro-enabled office file and writes them to files in
outputDir.
(从启用宏的 office 文件中提取 VBA 模块并将它们写入 outputDir 中的文件。)
|
static void |
main(java.lang.String[] args) |
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
(java.io.IOException)
public void extract(java.io.File input, java.io.File outputDir, java.lang.String extension) throws java.io.IOException
input
- the macro-enabled office file.
(输入 - 启用宏的 office 文件。)
outputDir
- the directory to write the extracted VBA modules to.
(outputDir - 将提取的 VBA 模块写入的目录。)
extension
- file extension of the extracted VBA modules
(extension - 提取的 VBA 模块的文件扩展名)
java.io.IOException
(java.io.IOException)
public void extract(java.io.File input, java.io.File outputDir) throws java.io.IOException
input
- the macro-enabled office file.
(输入 - 启用宏的 office 文件。)
outputDir
- the directory to write the extracted VBA modules to.
(outputDir - 将提取的 VBA 模块写入的目录。)
java.io.IOException
(java.io.IOException)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.