public class CompoundOleUtil extends java.lang.Object implements OleUtil.CompoundPackageFactory
| Modifier and Type | Class and Description |
|---|---|
private static class |
CompoundOleUtil.CompoundContentImpl |
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
CONTENTS_ENTRY |
private static java.lang.String |
ENTRY_NAME_CHARSET |
private static java.lang.String |
ENTRY_SEPARATOR |
| Constructor and Description |
|---|
CompoundOleUtil() |
| Modifier and Type | Method and Description |
|---|---|
OleUtil.ContentImpl |
createCompoundPackageContent(OleUtil.OleBlobImpl blob,
java.lang.String prettyName,
java.lang.String className,
java.lang.String typeName,
java.nio.ByteBuffer blobBb,
int dataBlockLen)
Creates a nes CompoundContent for the given blob information.
|
private static java.lang.String |
decodeEntryName(java.lang.String name) |
private static java.lang.String |
encodeEntryName(java.lang.String name) |
static org.apache.poi.poifs.filesystem.DocumentEntry |
getDocumentEntry(java.lang.String entryName,
org.apache.poi.poifs.filesystem.DirectoryEntry dir)
Gets a DocumentEntry from compound storage based on a fully qualified,
encoded entry name.
|
private static final java.lang.String ENTRY_NAME_CHARSET
private static final java.lang.String ENTRY_SEPARATOR
private static final java.lang.String CONTENTS_ENTRY
public OleUtil.ContentImpl createCompoundPackageContent(OleUtil.OleBlobImpl blob, java.lang.String prettyName, java.lang.String className, java.lang.String typeName, java.nio.ByteBuffer blobBb, int dataBlockLen)
createCompoundPackageContent in interface OleUtil.CompoundPackageFactorypublic static org.apache.poi.poifs.filesystem.DocumentEntry getDocumentEntry(java.lang.String entryName,
org.apache.poi.poifs.filesystem.DirectoryEntry dir)
throws java.io.IOException
entryName - fully qualified, encoded entry namedir - root directory of the compound storagejava.io.FileNotFoundException - if the entry does not existjava.io.IOException - if some other io error occursprivate static java.lang.String encodeEntryName(java.lang.String name)
private static java.lang.String decodeEntryName(java.lang.String name)