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

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

本文整理了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

  1. public static void writeManifest(Manifest manifest, OutputStream out) throws IOException {
  2. if (manifest == null)
  3. return;
  4. manifest = clean(manifest);
  5. outputManifest(manifest, out);
  6. }

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

  1. public static void writeManifest(Manifest manifest, OutputStream out) throws IOException {
  2. if (manifest == null)
  3. return;
  4. manifest = clean(manifest);
  5. outputManifest(manifest, out);
  6. }

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

  1. public static void writeManifest(Manifest manifest, OutputStream out) throws IOException {
  2. if (manifest == null)
  3. return;
  4. manifest = clean(manifest);
  5. outputManifest(manifest, out);
  6. }

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

  1. public static void writeManifest(Manifest manifest, OutputStream out) throws IOException {
  2. if (manifest == null)
  3. return;
  4. manifest = clean(manifest);
  5. outputManifest(manifest, out);
  6. }

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

  1. public static void writeManifest(Manifest manifest, OutputStream out) throws IOException {
  2. if (manifest == null)
  3. return;
  4. manifest = clean(manifest);
  5. outputManifest(manifest, out);
  6. }

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

  1. private static Manifest clean(Manifest org) {
  2. Manifest result = new Manifest();
  3. for (Map.Entry< ? , ? > entry : org.getMainAttributes().entrySet()) {
  4. String nice = clean((String) entry.getValue());
  5. result.getMainAttributes().put(entry.getKey(), nice);
  6. }
  7. for (String name : org.getEntries().keySet()) {
  8. Attributes attrs = result.getAttributes(name);
  9. if (attrs == null) {
  10. attrs = new Attributes();
  11. result.getEntries().put(name, attrs);
  12. }
  13. for (Map.Entry< ? , ? > entry : org.getAttributes(name).entrySet()) {
  14. String nice = clean((String) entry.getValue());
  15. attrs.put(entry.getKey(), nice);
  16. }
  17. }
  18. return result;
  19. }

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

  1. private static Manifest clean(Manifest org) {
  2. Manifest result = new Manifest();
  3. for (Map.Entry<?, ?> entry : org.getMainAttributes()
  4. .entrySet()) {
  5. String nice = clean((String) entry.getValue());
  6. result.getMainAttributes()
  7. .put(entry.getKey(), nice);
  8. }
  9. for (String name : org.getEntries()
  10. .keySet()) {
  11. Attributes attrs = result.getAttributes(name);
  12. if (attrs == null) {
  13. attrs = new Attributes();
  14. result.getEntries()
  15. .put(name, attrs);
  16. }
  17. for (Map.Entry<?, ?> entry : org.getAttributes(name)
  18. .entrySet()) {
  19. String nice = clean((String) entry.getValue());
  20. attrs.put(entry.getKey(), nice);
  21. }
  22. }
  23. return result;
  24. }

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

  1. private static Manifest clean(Manifest org) {
  2. Manifest result = new Manifest();
  3. for (Map.Entry< ? , ? > entry : org.getMainAttributes().entrySet()) {
  4. String nice = clean((String) entry.getValue());
  5. result.getMainAttributes().put(entry.getKey(), nice);
  6. }
  7. for (String name : org.getEntries().keySet()) {
  8. Attributes attrs = result.getAttributes(name);
  9. if (attrs == null) {
  10. attrs = new Attributes();
  11. result.getEntries().put(name, attrs);
  12. }
  13. for (Map.Entry< ? , ? > entry : org.getAttributes(name).entrySet()) {
  14. String nice = clean((String) entry.getValue());
  15. attrs.put(entry.getKey(), nice);
  16. }
  17. }
  18. return result;
  19. }

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

  1. private static Manifest clean(Manifest org) {
  2. Manifest result = new Manifest();
  3. for (Map.Entry< ? , ? > entry : org.getMainAttributes().entrySet()) {
  4. String nice = clean((String) entry.getValue());
  5. result.getMainAttributes().put(entry.getKey(), nice);
  6. }
  7. for (String name : org.getEntries().keySet()) {
  8. Attributes attrs = result.getAttributes(name);
  9. if (attrs == null) {
  10. attrs = new Attributes();
  11. result.getEntries().put(name, attrs);
  12. }
  13. for (Map.Entry< ? , ? > entry : org.getAttributes(name).entrySet()) {
  14. String nice = clean((String) entry.getValue());
  15. attrs.put(entry.getKey(), nice);
  16. }
  17. }
  18. return result;
  19. }

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

  1. private static Manifest clean(Manifest org) {
  2. Manifest result = new Manifest();
  3. for (Map.Entry<?, ?> entry : org.getMainAttributes()
  4. .entrySet()) {
  5. String nice = clean((String) entry.getValue());
  6. result.getMainAttributes()
  7. .put(entry.getKey(), nice);
  8. }
  9. for (String name : org.getEntries()
  10. .keySet()) {
  11. Attributes attrs = result.getAttributes(name);
  12. if (attrs == null) {
  13. attrs = new Attributes();
  14. result.getEntries()
  15. .put(name, attrs);
  16. }
  17. for (Map.Entry<?, ?> entry : org.getAttributes(name)
  18. .entrySet()) {
  19. String nice = clean((String) entry.getValue());
  20. attrs.put(entry.getKey(), nice);
  21. }
  22. }
  23. return result;
  24. }

相关文章