|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.openxml4j.opc.internal.ZipHelper
public final class ZipHelper
Field Summary | |
---|---|
static int |
READ_WRITE_FILE_BUFFER_SIZE
Buffer to read data from file. |
Method Summary | |
---|---|
static java.util.zip.ZipEntry |
getContentTypeZipEntry(ZipPackage pkg)
Retrieve the Zip entry of the content types part. |
static java.util.zip.ZipEntry |
getCorePropertiesZipEntry(ZipPackage pkg)
Retrieve the zip entry of the core properties part. |
static java.lang.String |
getOPCNameFromZipItemName(java.lang.String zipItemName)
Convert a zip name into an OPC name by adding a leading forward slash to the specified item name. |
static java.lang.String |
getZipItemNameFromOPCName(java.lang.String opcItemName)
Convert an OPC item name into a zip item name by removing any leading forward slash if it exist. |
static java.net.URI |
getZipURIFromOPCName(java.lang.String opcItemName)
Convert an OPC item name into a zip URI by removing any leading forward slash if it exist. |
static java.util.zip.ZipFile |
openZipFile(java.lang.String path)
Retrieve and open a zip file with the specified path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int READ_WRITE_FILE_BUFFER_SIZE
Method Detail |
---|
public static java.util.zip.ZipEntry getCorePropertiesZipEntry(ZipPackage pkg)
OpenXML4JException
- Throws if internal error occurs.public static java.util.zip.ZipEntry getContentTypeZipEntry(ZipPackage pkg)
public static java.lang.String getOPCNameFromZipItemName(java.lang.String zipItemName)
zipItemName
- Zip item name to convert.
public static java.lang.String getZipItemNameFromOPCName(java.lang.String opcItemName)
opcItemName
- The OPC item name to convert.
public static java.net.URI getZipURIFromOPCName(java.lang.String opcItemName)
opcItemName
- The OPC item name to convert.
public static java.util.zip.ZipFile openZipFile(java.lang.String path)
path
- The file path.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |