Package org.apache.poi.hslf.dev
Class SlideShowDumper
java.lang.Object
org.apache.poi.hslf.dev.SlideShowDumper
This class provides a way to "peek" inside a powerpoint file. It
will print out all the types it finds, and for those it knows aren't
atoms, what they contain
To figure out what things are, and if they are atoms or not, used the list in hslf.record.RecordTypes
To peek inside PPDrawings, which hold Escher drawings, we use the DDF package from POI (but we can fake it by using the Escher listings from hslf.record.RecordTypes also)
-
Constructor Summary
ConstructorsConstructorDescriptionSlideShowDumper(POIFSFileSystem filesystem, PrintStream out) Constructs a Powerpoint dump from a POIFS Filesystem. -
Method Summary
Modifier and TypeMethodDescriptionstatic intstatic voidright now this function takes one parameter: a ppt file, and outputs a dump of what it containsvoidvoidsetBasicEscher(boolean grok) Control dumping of any Escher records found - should our built in basic groker be used?voidsetDDFEscher(boolean grok) Control dumping of any Escher records found - should DDF be used?static voidsetMaxRecordLength(int length) voidwalkEscherBasic(int indent, int pos, int len) Use the basic record format groking code to walk the Escher recordsvoidwalkEscherDDF(int indent, int pos, int len) Use the DDF code to walk the Escher recordsvoidwalkTree(int depth, int startPos, int maxLen)
-
Constructor Details
-
SlideShowDumper
Constructs a Powerpoint dump from a POIFS Filesystem. Parses the document and dumps out the contents- Parameters:
filesystem- the POIFS FileSystem to read from- Throws:
IOException- if there is a problem while parsing the document.
-
-
Method Details
-
setMaxRecordLength
public static void setMaxRecordLength(int length) - Parameters:
length- the max record length allowed for SlideShowDumper
-
getMaxRecordLength
public static int getMaxRecordLength()- Returns:
- the max record length allowed for SlideShowDumper
-
main
right now this function takes one parameter: a ppt file, and outputs a dump of what it contains- Throws:
IOException
-
setDDFEscher
public void setDDFEscher(boolean grok) Control dumping of any Escher records found - should DDF be used? -
setBasicEscher
public void setBasicEscher(boolean grok) Control dumping of any Escher records found - should our built in basic groker be used? -
printDump
- Throws:
IOException
-
walkTree
- Throws:
IOException
-
walkEscherDDF
public void walkEscherDDF(int indent, int pos, int len) Use the DDF code to walk the Escher records -
walkEscherBasic
Use the basic record format groking code to walk the Escher records- Throws:
IOException
-