public final class PPTXMLDump extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CR |
protected byte[] |
docstream |
static int |
HEADER_SIZE |
protected boolean |
hexHeader |
protected Writer |
out |
static int |
PICT_HEADER_SIZE |
protected byte[] |
pictstream |
static String |
PICTURES_ENTRY |
static String |
PPDOC_ENTRY |
| Constructor and Description |
|---|
PPTXMLDump(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(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(String[] args) |
public static final int HEADER_SIZE
public static final int PICT_HEADER_SIZE
public static final String PPDOC_ENTRY
public static final String PICTURES_ENTRY
public static String CR
protected Writer out
protected byte[] docstream
protected byte[] pictstream
protected boolean hexHeader
public PPTXMLDump(File ppt) throws IOException
IOExceptionpublic void dump(Writer out) throws IOException
out - Writer to write outIOExceptionpublic void dump(byte[] data,
int offset,
int length,
int padding)
throws IOException
data - PPT binary dataoffset - offset from the beginning of the documentlength - of the documentpadding - used for formatting resultsIOExceptionpublic void dumpPictures(byte[] data,
int padding)
throws IOException
data - from the Pictures OLE data streampadding - IOExceptionCopyright © 2020. All rights reserved.