| Modifier and Type | Class and Description |
|---|---|
static class |
BlobUtils.ZIP_ENTRY_ENCODING_OPTIONS |
| Modifier and Type | Field and Description |
|---|---|
static String |
ZIP_ENTRY_ENCODING_PROPERTY |
| Constructor and Description |
|---|
BlobUtils() |
| Modifier and Type | Method and Description |
|---|---|
protected static String |
escapeEntryPath(String path) |
protected static String |
getFileName(Blob blob) |
static Blob |
zip(Blob blob,
String filename)
Zip the given blob.
|
protected static void |
zip(Blob blob,
ZipOutputStream out) |
static Blob |
zip(List<Blob> blobs,
String fileName)
Zip a list of blob.
|
protected static void |
zip(List<Blob> blobs,
ZipOutputStream out) |
public static final String ZIP_ENTRY_ENCODING_PROPERTY
public BlobUtils()
protected static String escapeEntryPath(String path)
protected static String getFileName(Blob blob)
public static Blob zip(Blob blob, String filename) throws IOException
blob - the blobfilename - if no filename is given, the blob's filename will be usedIOExceptionprotected static void zip(Blob blob, ZipOutputStream out) throws IOException
IOExceptionpublic static Blob zip(List<Blob> blobs, String fileName) throws IOException
blobs - the blob listfileName - if no filename is given, the first blob's filename will be usedIOExceptionprotected static void zip(List<Blob> blobs, ZipOutputStream out) throws IOException
IOExceptionCopyright © 2019 Nuxeo. All rights reserved.