public class VBAMacroReader extends Object implements Closeable
Finds all VBA Macros in an office file (OLE2/POIFS and OOXML/OPC), and returns them.
NOTE: This does not read macros from .ppt files. See org.apache.poi.hslf.usermodel.TestBugs.getMacrosFromHSLF() in the scratchpad module for an example of how to do this. Patches that make macro extraction from .ppt more elegant are welcomed!
Constructor and Description |
---|
VBAMacroReader(File file) |
VBAMacroReader(InputStream rstream) |
VBAMacroReader(POIFSFileSystem fs) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
Map<String,Module> |
readMacroModules() |
Map<String,String> |
readMacros()
Reads all macros from all modules of the opened office file.
|
public VBAMacroReader(InputStream rstream) throws IOException
IOException
public VBAMacroReader(File file) throws IOException
IOException
public VBAMacroReader(POIFSFileSystem fs)
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public Map<String,Module> readMacroModules() throws IOException
IOException
public Map<String,String> readMacros() throws IOException
IOException
Copyright © 2010 - 2020 Adobe. All Rights Reserved