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
IOException
public void dump(Writer out) throws IOException
out
- Writer
to write outIOException
public 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 resultsIOException
public void dumpPictures(byte[] data, int padding) throws IOException
data
- from the Pictures OLE data streampadding
- IOException
Copyright © 2020. All rights reserved.