public interface WarOperation
| 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.
|
InputStream processEntry(JarEntry entry, InputStream is) throws IOException
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.void preprocessEntry(JarEntry entry, ExceptionalSupplier<? extends InputStream,IOException> is) throws IOException
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.Collection<? extends FileEntry> additionalFiles() throws IOException
IOException - if an error occurs gathering additional files.Copyright © 2002-2017 Atlassian. All Rights Reserved.