public class PropertiesTransformer extends Object implements ResourceTransformer
Modifier | Constructor and Description |
---|---|
|
PropertiesTransformer() |
protected |
PropertiesTransformer(String resource,
String ordinalKey,
int defaultOrdinal,
boolean reversed) |
Modifier and Type | Method and Description |
---|---|
boolean |
canTransformResource(String resource) |
boolean |
hasTransformedResource() |
void |
modifyOutputStream(JarOutputStream os) |
void |
processResource(String resource,
InputStream is,
List<Relocator> relocators,
long time)
Transform an individual resource
|
void |
setAlreadyMergedKey(String alreadyMergedKey) |
void |
setDefaultOrdinal(int defaultOrdinal) |
void |
setOrdinalKey(String ordinalKey) |
void |
setResource(String resource) |
void |
setReverseOrder(boolean reverseOrder) |
public boolean canTransformResource(String resource)
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 os) throws IOException
modifyOutputStream
in interface ResourceTransformer
IOException
public void setReverseOrder(boolean reverseOrder)
public void setResource(String resource)
public void setOrdinalKey(String ordinalKey)
public void setDefaultOrdinal(int defaultOrdinal)
public void setAlreadyMergedKey(String alreadyMergedKey)
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.