aQute.bnd.osgi.Jar.clean()方法的使用及代码示例

x33g5p2x  于2022-01-22 转载在 其他  
字(4.1k)|赞(0)|评价(0)|浏览(94)

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

Jar.clean介绍

暂无

代码示例

代码示例来源:origin: biz.aQute.bnd/bnd

public static void writeManifest(Manifest manifest, OutputStream out) throws IOException {
  if (manifest == null)
    return;
  manifest = clean(manifest);
  outputManifest(manifest, out);
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

public static void writeManifest(Manifest manifest, OutputStream out) throws IOException {
  if (manifest == null)
    return;
  manifest = clean(manifest);
  outputManifest(manifest, out);
}

代码示例来源:origin: biz.aQute.bnd/bndlib

public static void writeManifest(Manifest manifest, OutputStream out) throws IOException {
  if (manifest == null)
    return;
  manifest = clean(manifest);
  outputManifest(manifest, out);
}

代码示例来源:origin: biz.aQute/bndlib

public static void writeManifest(Manifest manifest, OutputStream out) throws IOException {
  if (manifest == null)
    return;
  manifest = clean(manifest);
  outputManifest(manifest, out);
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

public static void writeManifest(Manifest manifest, OutputStream out) throws IOException {
  if (manifest == null)
    return;
  manifest = clean(manifest);
  outputManifest(manifest, out);
}

代码示例来源:origin: biz.aQute.bnd/bndlib

private static Manifest clean(Manifest org) {
  Manifest result = new Manifest();
  for (Map.Entry< ? , ? > entry : org.getMainAttributes().entrySet()) {
    String nice = clean((String) entry.getValue());
    result.getMainAttributes().put(entry.getKey(), nice);
  }
  for (String name : org.getEntries().keySet()) {
    Attributes attrs = result.getAttributes(name);
    if (attrs == null) {
      attrs = new Attributes();
      result.getEntries().put(name, attrs);
    }
    for (Map.Entry< ? , ? > entry : org.getAttributes(name).entrySet()) {
      String nice = clean((String) entry.getValue());
      attrs.put(entry.getKey(), nice);
    }
  }
  return result;
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

private static Manifest clean(Manifest org) {
  Manifest result = new Manifest();
  for (Map.Entry<?, ?> entry : org.getMainAttributes()
    .entrySet()) {
    String nice = clean((String) entry.getValue());
    result.getMainAttributes()
      .put(entry.getKey(), nice);
  }
  for (String name : org.getEntries()
    .keySet()) {
    Attributes attrs = result.getAttributes(name);
    if (attrs == null) {
      attrs = new Attributes();
      result.getEntries()
        .put(name, attrs);
    }
    for (Map.Entry<?, ?> entry : org.getAttributes(name)
      .entrySet()) {
      String nice = clean((String) entry.getValue());
      attrs.put(entry.getKey(), nice);
    }
  }
  return result;
}

代码示例来源:origin: biz.aQute/bndlib

private static Manifest clean(Manifest org) {
  Manifest result = new Manifest();
  for (Map.Entry< ? , ? > entry : org.getMainAttributes().entrySet()) {
    String nice = clean((String) entry.getValue());
    result.getMainAttributes().put(entry.getKey(), nice);
  }
  for (String name : org.getEntries().keySet()) {
    Attributes attrs = result.getAttributes(name);
    if (attrs == null) {
      attrs = new Attributes();
      result.getEntries().put(name, attrs);
    }
    for (Map.Entry< ? , ? > entry : org.getAttributes(name).entrySet()) {
      String nice = clean((String) entry.getValue());
      attrs.put(entry.getKey(), nice);
    }
  }
  return result;
}

代码示例来源:origin: biz.aQute.bnd/bnd

private static Manifest clean(Manifest org) {
  Manifest result = new Manifest();
  for (Map.Entry< ? , ? > entry : org.getMainAttributes().entrySet()) {
    String nice = clean((String) entry.getValue());
    result.getMainAttributes().put(entry.getKey(), nice);
  }
  for (String name : org.getEntries().keySet()) {
    Attributes attrs = result.getAttributes(name);
    if (attrs == null) {
      attrs = new Attributes();
      result.getEntries().put(name, attrs);
    }
    for (Map.Entry< ? , ? > entry : org.getAttributes(name).entrySet()) {
      String nice = clean((String) entry.getValue());
      attrs.put(entry.getKey(), nice);
    }
  }
  return result;
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

private static Manifest clean(Manifest org) {
  Manifest result = new Manifest();
  for (Map.Entry<?, ?> entry : org.getMainAttributes()
    .entrySet()) {
    String nice = clean((String) entry.getValue());
    result.getMainAttributes()
      .put(entry.getKey(), nice);
  }
  for (String name : org.getEntries()
    .keySet()) {
    Attributes attrs = result.getAttributes(name);
    if (attrs == null) {
      attrs = new Attributes();
      result.getEntries()
        .put(name, attrs);
    }
    for (Map.Entry<?, ?> entry : org.getAttributes(name)
      .entrySet()) {
      String nice = clean((String) entry.getValue());
      attrs.put(entry.getKey(), nice);
    }
  }
  return result;
}

相关文章

微信公众号

最新文章

更多