public class ManifestResourceTransformer extends Object implements ResourceTransformer
Constructor and Description |
---|
ManifestResourceTransformer() |
Modifier and Type | Method and Description |
---|---|
boolean |
canTransformResource(String resource) |
boolean |
hasTransformedResource() |
void |
modifyOutputStream(JarOutputStream jos) |
void |
processResource(String resource,
InputStream is,
List<Relocator> relocators)
Transform an individual resource
|
void |
setAdditionalAttributes(List<String> additionalAttributes) |
void |
setMainClass(String mainClass) |
void |
setManifestEntries(Map<String,Object> manifestEntries) |
public void setMainClass(String mainClass)
public boolean canTransformResource(String resource)
canTransformResource
in interface ResourceTransformer
public void processResource(String resource, InputStream is, List<Relocator> relocators) throws IOException
ResourceTransformer
processResource
in interface ResourceTransformer
resource
- The resource nameis
- An input stream for the resource, the implementation should *not* close this streamrelocators
- A list of relocatorsIOException
- When the IO blows uppublic boolean hasTransformedResource()
hasTransformedResource
in interface ResourceTransformer
public void modifyOutputStream(JarOutputStream jos) throws IOException
modifyOutputStream
in interface ResourceTransformer
IOException
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.