public class UpdateContentsTransformer extends Object implements de.unkrig.commons.file.contentstransformation.ContentsTransformer
ContentsTransformer
that replaces the contents with that of a given "update file".Constructor and Description |
---|
UpdateContentsTransformer(de.unkrig.commons.text.pattern.Glob updateFile) |
Modifier and Type | Method and Description |
---|---|
void |
addUpdateListener(de.unkrig.commons.lang.protocol.Consumer<String> updateListener)
The given updateListener will be called for each update.
|
String |
toString() |
void |
transform(String path,
InputStream is,
OutputStream os) |
public UpdateContentsTransformer(de.unkrig.commons.text.pattern.Glob updateFile)
public void transform(String path, InputStream is, OutputStream os) throws IOException
transform
in interface de.unkrig.commons.file.contentstransformation.ContentsTransformer
IOException
public void addUpdateListener(de.unkrig.commons.lang.protocol.Consumer<String> updateListener)
Copyright © 2022 Arno Unkrig. All rights reserved.