gpt4 book ai didi

com.liferay.portal.kernel.zip.ZipWriter.addEntry()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-13 11:29:45 30 4
gpt4 key购买 nike

本文整理了Java中com.liferay.portal.kernel.zip.ZipWriter.addEntry()方法的一些代码示例,展示了ZipWriter.addEntry()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZipWriter.addEntry()方法的具体详情如下:
包路径:com.liferay.portal.kernel.zip.ZipWriter
类名称:ZipWriter
方法名:addEntry

ZipWriter.addEntry介绍

暂无

代码示例

代码示例来源:origin: com.liferay.portal/portal-kernel

public void addEntry(String name, StringBuilder sb) throws IOException {
  addEntry(name, sb.toString());
}

代码示例来源:origin: com.liferay.portal/portal-kernel

public void addEntry(String name, byte[] bytes) throws IOException {
  addEntry(name, new ByteArrayInputStream(bytes));
}

代码示例来源:origin: com.liferay.portal/portal-kernel

public void addEntry(String name, String s) throws IOException {
  addEntry(name, s.getBytes());
}

代码示例来源:origin: com.liferay/com.liferay.exportimport.service

@Override
public void addZipEntry(String path, byte[] bytes) {
  if (isPathProcessed(path)) {
    return;
  }
  try {
    ZipWriter zipWriter = getZipWriter();
    zipWriter.addEntry(path, bytes);
  }
  catch (IOException ioe) {
    ExportImportIOException eiioe = new ExportImportIOException(
      PortletDataContextImpl.class.getName(), ioe);
    eiioe.setFileName(path);
    eiioe.setType(ExportImportIOException.ADD_ZIP_ENTRY_BYTES);
    throw new SystemException(eiioe);
  }
}

代码示例来源:origin: com.liferay/com.liferay.exportimport.service

@Override
public void addZipEntry(String path, InputStream is) {
  if (isPathProcessed(path)) {
    return;
  }
  try {
    ZipWriter zipWriter = getZipWriter();
    zipWriter.addEntry(path, is);
  }
  catch (IOException ioe) {
    ExportImportIOException eiioe = new ExportImportIOException(
      PortletDataContextImpl.class.getName(), ioe);
    eiioe.setFileName(path);
    eiioe.setType(ExportImportIOException.ADD_ZIP_ENTRY_STREAM);
    throw new SystemException(eiioe);
  }
}

代码示例来源:origin: com.liferay/com.liferay.exportimport.service

@Override
public void addZipEntry(String path, String s) {
  if (isPathProcessed(path)) {
    return;
  }
  try {
    ZipWriter zipWriter = getZipWriter();
    zipWriter.addEntry(path, s);
  }
  catch (IOException ioe) {
    ExportImportIOException eiioe = new ExportImportIOException(
      PortletDataContextImpl.class.getName(), ioe);
    eiioe.setFileName(path);
    eiioe.setType(ExportImportIOException.ADD_ZIP_ENTRY_STRING);
    throw new SystemException(eiioe);
  }
}

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com