本文整理了Java中pl.edu.icm.yadda.export.output.ZipOutput.<init>()
方法的一些代码示例,展示了ZipOutput.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipOutput.<init>()
方法的具体详情如下:
包路径:pl.edu.icm.yadda.export.output.ZipOutput
类名称:ZipOutput
方法名:<init>
暂无
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
protected DumpOutput resolveOutput(String format, OutputStream os)
throws IOException {
DumpOutput output;
if (BasicPackConstants.FORMAT_ZIP.equals(format)) {
output = new ZipOutput(os);
} else if (BasicPackConstants.FORMAT_TGZ.equals(format)) {
output = new TgzOutput(os);
} else if (BasicPackConstants.FORMAT_TAR.equals(format)) {
output = new TarOutput(os);
} else {
throw new IllegalStateException("Unknown format expected " + format);
}
return output;
}
代码示例来源:origin: pl.edu.icm.yadda/bwmeta-import
protected DumpOutput resolveOutput(String format, String outputFile)
throws IOException {
DumpOutput output;
if (BasicPackConstants.FORMAT_ZIP.equals(format)) {
output = new ZipOutput(outputFile);
} else if (BasicPackConstants.FORMAT_TGZ.equals(format)) {
output = new TgzOutput(outputFile);
} else if (BasicPackConstants.FORMAT_TAR.equals(format)) {
output = new TarOutput(outputFile);
} else {
throw new IllegalStateException("Unknown format expected " + format);
}
return output;
}
代码示例来源:origin: pl.edu.icm.yadda/yadda-user
/** Exports user catalog to a new file in zip file format. This is
* convenience shortcut for @see exportUserCatalog(DumpOutput output, int chunkSize)
* method. Newly created archive contains a number of XML files in directory
* aal representing users, groups and roles from archive.
* @param zipFileName output file name
* @throws IOException
* @throws ServiceException
*/
public void exportUserCatalogToZip(String zipFileName)
throws IOException, ServiceException {
ZipOutput output = new ZipOutput(zipFileName);
exportUserCatalog(output, DEFAULT_CHUNK_SIZE);
output.close();
}
代码示例来源:origin: pl.edu.icm.yadda.repowebeditor/repository-web-editor-core
private void sendUpdateReport(SaveOperation operation, Ancestors ancestors, WebUserDetails userDetails, String title) throws IOException, RepositoryException {
ZipOutput zipOutput = new ZipOutput(os);
for (String partType:operation.getObject().getPartTypes()) {
if ("BWMETA1".equals(partType)) {
内容来源于网络,如有侵权,请联系作者删除!