|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hslf.dev.SlideShowDumper
public final class SlideShowDumper
This class provides a way to "peek" inside a powerpoint file. It will print out all the types it find, and for those it know 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 | |
---|---|
SlideShowDumper(java.io.InputStream inputStream)
Constructs a Powerpoint dump from an input stream. |
|
SlideShowDumper(POIFSFileSystem filesystem)
Constructs a Powerpoint dump from a POIFS Filesystem. |
|
SlideShowDumper(java.lang.String fileName)
Constructs a Powerpoint dump from fileName. |
Method Summary | |
---|---|
void |
close()
Shuts things down. |
static void |
main(java.lang.String[] args)
right now this function takes one parameter: a ppt file, and outputs a dump of what it contains |
java.lang.String |
makeHex(int i)
|
java.lang.String |
makeHex(short s)
|
void |
printDump()
|
void |
setBasicEscher(boolean grok)
Control dumping of any Escher records found - should our built in basic groker be used? |
void |
setDDFEscher(boolean grok)
Control dumping of any Escher records found - should DDF be used? |
void |
walkEscherBasic(int indent,
int pos,
int len)
Use the basic record format groking code to walk the Escher records |
void |
walkEscherDDF(int indent,
int pos,
int len)
Use the DDF code to walk the Escher records |
void |
walkTree(int depth,
int startPos,
int maxLen)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SlideShowDumper(java.lang.String fileName) throws java.io.IOException
fileName
- The name of the file to read.
java.io.IOException
- if there is a problem while parsing the document.public SlideShowDumper(java.io.InputStream inputStream) throws java.io.IOException
inputStream
- the source of the data
java.io.IOException
- if there is a problem while parsing the document.public SlideShowDumper(POIFSFileSystem filesystem) throws java.io.IOException
filesystem
- the POIFS FileSystem to read from
java.io.IOException
- if there is a problem while parsing the document.Method Detail |
---|
public static void main(java.lang.String[] args) throws java.io.IOException
java.io.IOException
public void setDDFEscher(boolean grok)
public void setBasicEscher(boolean grok)
public void close() throws java.io.IOException
java.io.IOException
public void printDump()
public java.lang.String makeHex(short s)
public java.lang.String makeHex(int i)
public void walkTree(int depth, int startPos, int maxLen)
public void walkEscherDDF(int indent, int pos, int len)
public void walkEscherBasic(int indent, int pos, int len)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |