Package org.nuxeo.ecm.core.utils
Class BlobUtils
java.lang.Object
org.nuxeo.ecm.core.utils.BlobUtils
Blob utility methods.
- Since:
- 9.3
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected static String
escapeEntryPath
(String path) protected static String
getFileName
(Blob blob) static Blob
Zip a list of blob.protected static void
zip
(List<Blob> blobs, ZipOutputStream out) static Blob
Zip the given blob.protected static void
zip
(Blob blob, ZipOutputStream out)
-
Field Details
-
ZIP_ENTRY_ENCODING_PROPERTY
- See Also:
-
-
Constructor Details
-
BlobUtils
public BlobUtils()
-
-
Method Details
-
escapeEntryPath
-
getFileName
-
zip
Zip the given blob.- Parameters:
blob
- the blobfilename
- if no filename is given, the blob's filename will be used- Returns:
- a zip containing the blob
- Throws:
IOException
-
zip
- Throws:
IOException
-
zip
Zip a list of blob.- Parameters:
blobs
- the blob listfileName
- if no filename is given, the first blob's filename will be used- Returns:
- a zip containing the list of blob
- Throws:
IOException
-
zip
- Throws:
IOException
-