com.springsource.util.io
Interface JarTransformer.JarTransformerCallback
- Enclosing class:
- JarTransformer
public static interface JarTransformer.JarTransformerCallback
Callback interface used to transform entries in a JAR file.
- See Also:
JarTransformer
|
Method Summary |
boolean |
transformEntry(java.lang.String entryName,
java.io.InputStream is,
java.io.OutputStream os)
Transform the entry with the supplied name. |
transformEntry
boolean transformEntry(java.lang.String entryName,
java.io.InputStream is,
java.io.OutputStream os)
throws java.io.IOException
- Transform the entry with the supplied name.
Entry content can be read from the supplied
InputStream and transformed contents are written to the
supplied OutputStream.
Implementations must return true if performing a transformation. Otherwise,
false must be returned. No content should be written when not performing a transformation.
- Parameters:
entryName - the name of the entry being transformedis - the entry contentos - the output destination
- Returns:
true if transformation was performed, otherwise false
- Throws:
java.io.IOException - if transformation fails