Java Jar Manifest stripManifest(Manifest manifestIn)

Here you can find the source of stripManifest(Manifest manifestIn)

Description

strip Manifest

License

LGPL

Declaration

private static Manifest stripManifest(Manifest manifestIn) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.util.Map;

import java.util.jar.*;

public class Main {
    private static Manifest stripManifest(Manifest manifestIn) {
        Manifest manifestOut = new Manifest(manifestIn);
        for (Map.Entry<String, Attributes> entry : manifestIn.getEntries().entrySet()) {
            manifestOut.getEntries().remove(entry.getKey());
        }/*from www  .  ja va2  s  .  c  o  m*/
        return manifestOut;
    }
}

Related

  1. getManifestVersionNumber(File file)
  2. getValueFromAttr(Attributes attributes, String manifestValue)
  3. isOSGiManifest(Manifest manifest)
  4. manifestToProperties(Attributes d)
  5. merge(Manifest into, Manifest from)