public class ResourceBundleAppendingTransformer extends Object implements ResourceTransformer
Constructor and Description |
---|
ResourceBundleAppendingTransformer() |
Modifier and Type | Method and Description |
---|---|
boolean |
canTransformResource(String r) |
boolean |
hasTransformedResource() |
void |
modifyOutputStream(JarOutputStream jos) |
void |
processResource(String resource,
InputStream is,
List<Relocator> relocators,
long time)
Transform an individual resource
|
void |
setBasename(String basename)
the base name of the resource bundle, a fully qualified class name
|
public void setBasename(String basename)
basename
- The basename.public boolean canTransformResource(String r)
canTransformResource
in interface ResourceTransformer
public void processResource(String resource, InputStream is, List<Relocator> relocators, long time) 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 relocatorstime
- the time of the resource to processIOException
- 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.