public final class PPTXMLDump
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CR |
protected byte[] |
docstream |
static int |
HEADER_SIZE |
protected boolean |
hexHeader |
protected java.io.Writer |
out |
static int |
PICT_HEADER_SIZE |
protected byte[] |
pictstream |
static java.lang.String |
PICTURES_ENTRY |
static java.lang.String |
PPDOC_ENTRY |
| Constructor and Description |
|---|
PPTXMLDump(java.io.File ppt) |
| Modifier and Type | Method and Description |
|---|---|
void |
dump(byte[] data,
int offset,
int length,
int padding)
Dump a part of the document stream into XML
|
void |
dump(java.io.Writer out)
Dump the structure of the supplied PPT file into XML
|
void |
dumpPictures(byte[] data,
int padding)
Dumps the Pictures OLE stream into XML.
|
static void |
main(java.lang.String[] args) |
public static final int HEADER_SIZE
public static final int PICT_HEADER_SIZE
public static final java.lang.String PPDOC_ENTRY
public static final java.lang.String PICTURES_ENTRY
public static java.lang.String CR
protected java.io.Writer out
protected byte[] docstream
protected byte[] pictstream
protected boolean hexHeader
public PPTXMLDump(java.io.File ppt)
throws java.io.IOException
java.io.IOExceptionpublic void dump(java.io.Writer out)
throws java.io.IOException
out - Writer to write outjava.io.IOExceptionpublic void dump(byte[] data,
int offset,
int length,
int padding)
throws java.io.IOException
data - PPT binary dataoffset - offset from the beginning of the documentlength - of the documentpadding - used for formatting resultsjava.io.IOExceptionpublic void dumpPictures(byte[] data,
int padding)
throws java.io.IOException
data - from the Pictures OLE data streampadding - java.io.IOExceptionpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.ExceptionCopyright 2014 The Apache Software Foundation or its licensors, as applicable.