You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Andi Huber (JIRA)" <ji...@apache.org> on 2019/07/19 09:11:00 UTC
[jira] [Closed] (ISIS-2155) Introduce a BlobClobFactory and a
ZipWriter
[ https://issues.apache.org/jira/browse/ISIS-2155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andi Huber closed ISIS-2155.
----------------------------
Resolution: Fixed
Implemented, typical use showcasing both new classes ...
{code:java}
val zipWriter = ZipWriter.newInstance();
for (Map.Entry<String, String> entry : schemaMap.entrySet()) {
val namespaceUri = entry.getKey();
val schemaText = entry.getValue();
zipWriter.nextEntry(zipEntryNameFor(namespaceUri), writer->{
writer.write(schemaText);
});
}
return BlobClobFactory.blobZip(fileName, zipWriter.toBytes());
{code}
> Introduce a BlobClobFactory and a ZipWriter
> -------------------------------------------
>
> Key: ISIS-2155
> URL: https://issues.apache.org/jira/browse/ISIS-2155
> Project: Isis
> Issue Type: Improvement
> Reporter: Andi Huber
> Assignee: Andi Huber
> Priority: Major
> Fix For: 2.0.0
>
>
> To simplify common Blob/Clob/Zip idioms.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)