Package org.apache.poi.hslf.dev
Class SlideShowRecordDumper
- java.lang.Object
-
- org.apache.poi.hslf.dev.SlideShowRecordDumper
-
public final class SlideShowRecordDumper extends Object
This class provides a way to view the contents of a powerpoint file. It will use the recored layer to grok the contents of the file, and will print out what it finds.
-
-
Constructor Summary
Constructors Constructor Description SlideShowRecordDumper(PrintStream ps, String fileName, boolean verbose, boolean escher)Constructs a Powerpoint dump from fileName.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDiskLen(Record r)StringgetPrintableRecordContents(Record r)static voidmain(String[] args)right now this function takes one parameter: a ppt file, and outputs a dump of what it containsStringmakeHex(int number, int padding)voidprintDump()voidprintEscherRecord(EscherRecord er, int indent)static voidprintUsage()StringreverseHex(String s)voidwalkTree(int depth, int pos, Record[] records, int indent)
-
-
-
Constructor Detail
-
SlideShowRecordDumper
public SlideShowRecordDumper(PrintStream ps, String fileName, boolean verbose, boolean escher) throws IOException
Constructs a Powerpoint dump from fileName. Parses the document and dumps out the contents- Parameters:
fileName- The name of the file to read.- Throws:
IOException- if there is a problem while parsing the document.
-
-
Method Detail
-
main
public static void main(String[] args) throws IOException
right now this function takes one parameter: a ppt file, and outputs a dump of what it contains- Throws:
IOException
-
printUsage
public static void printUsage()
-
printDump
public void printDump() throws IOException- Throws:
IOException
-
makeHex
public String makeHex(int number, int padding)
-
getDiskLen
public int getDiskLen(Record r) throws IOException
- Throws:
IOException
-
getPrintableRecordContents
public String getPrintableRecordContents(Record r) throws IOException
- Throws:
IOException
-
printEscherRecord
public void printEscherRecord(EscherRecord er, int indent)
-
walkTree
public void walkTree(int depth, int pos, Record[] records, int indent) throws IOException- Throws:
IOException
-
-