public class ExcludeFileOperation extends Object implements WarOperation
Constructor and Description |
---|
ExcludeFileOperation(String name) |
Modifier and Type | Method and Description |
---|---|
Collection<? extends FileEntry> |
additionalFiles() |
void |
preprocessEntry(JarEntry entry,
ExceptionalSupplier<? extends InputStream,IOException> is)
Pre-processes a file entry in a WAR file.
|
InputStream |
processEntry(JarEntry entry,
InputStream is)
Process a file entry in a WAR file.
|
public ExcludeFileOperation(String name)
public InputStream processEntry(JarEntry entry, InputStream is) throws IOException
WarOperation
processEntry
in interface WarOperation
entry
- the entry in the WAR file.is
- the input stream to the original data.is
to leave entry unmodified or a new input stream that filters original data.
Return null
to not write the entry into the destination WAR file.IOException
- if an I/O error occurs.public void preprocessEntry(JarEntry entry, ExceptionalSupplier<? extends InputStream,IOException> is) throws IOException
WarOperation
preprocessEntry
in interface WarOperation
entry
- the entry in the WAR file to read.is
- provides access to the input stream of the entry. Only consume if needed.IOException
- if an I/O error occurs reading an entry.public Collection<? extends FileEntry> additionalFiles() throws IOException
additionalFiles
in interface WarOperation
IOException
- if an error occurs gathering additional files.Copyright © 2002-2019 Atlassian. All Rights Reserved.