public class CreateZip extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CreateZip.ZIP_ENTRY_ENCODING_OPTIONS |
Modifier and Type | Field and Description |
---|---|
protected OperationContext |
ctx |
protected String |
fileName |
static String |
ID |
static String |
ZIP_ENTRY_ENCODING_PROPERTY |
Constructor and Description |
---|
CreateZip() |
Modifier and Type | Method and Description |
---|---|
protected String |
escapeEntryPath(String path) |
protected String |
getFileName(Blob blob) |
Blob |
run(Blob blob) |
Blob |
run(BlobList blobs) |
protected void |
zip(BlobList blobs,
ZipOutputStream out) |
protected void |
zip(Blob blob,
ZipOutputStream out) |
public static final String ID
public static final String ZIP_ENTRY_ENCODING_PROPERTY
protected OperationContext ctx
public CreateZip()
public Blob run(Blob blob) throws IOException
IOException
public Blob run(BlobList blobs) throws IOException
IOException
protected String getFileName(Blob blob)
protected void zip(Blob blob, ZipOutputStream out) throws IOException
IOException
protected void zip(BlobList blobs, ZipOutputStream out) throws IOException
IOException
protected String escapeEntryPath(String path)
Copyright © 2015 Nuxeo SA. All rights reserved.