Package org.apache.poi.hslf.dev
Class SlideShowRecordDumper
- java.lang.Object
-
- org.apache.poi.hslf.dev.SlideShowRecordDumper
-
public final class SlideShowRecordDumper extends java.lang.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(java.io.PrintStream ps, java.lang.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 int
getDiskLen(Record r)
java.lang.String
getPrintableRecordContents(Record r)
static void
main(java.lang.String[] args)
right now this function takes one parameter: a ppt file, and outputs a dump of what it containsjava.lang.String
makeHex(int number, int padding)
void
printDump()
void
printEscherRecord(EscherRecord er, int indent)
static void
printUsage()
java.lang.String
reverseHex(java.lang.String s)
void
walkTree(int depth, int pos, Record[] records, int indent)
-
-
-
Constructor Detail
-
SlideShowRecordDumper
public SlideShowRecordDumper(java.io.PrintStream ps, java.lang.String fileName, boolean verbose, boolean escher) throws java.io.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:
java.io.IOException
- if there is a problem while parsing the document.
-
-
Method Detail
-
main
public static void main(java.lang.String[] args) throws java.io.IOException
right now this function takes one parameter: a ppt file, and outputs a dump of what it contains- Throws:
java.io.IOException
-
printUsage
public static void printUsage()
-
printDump
public void printDump() throws java.io.IOException
- Throws:
java.io.IOException
-
makeHex
public java.lang.String makeHex(int number, int padding)
-
reverseHex
public java.lang.String reverseHex(java.lang.String s)
-
getDiskLen
public int getDiskLen(Record r) throws java.io.IOException
- Throws:
java.io.IOException
-
getPrintableRecordContents
public java.lang.String getPrintableRecordContents(Record r) throws java.io.IOException
- Throws:
java.io.IOException
-
printEscherRecord
public void printEscherRecord(EscherRecord er, int indent)
-
walkTree
public void walkTree(int depth, int pos, Record[] records, int indent) throws java.io.IOException
- Throws:
java.io.IOException
-
-