public class DefaultNutsCompress extends Object implements net.thevpc.nuts.NutsCompress
| Constructor and Description |
|---|
DefaultNutsCompress(net.thevpc.nuts.NutsSession session) |
| Modifier and Type | Method and Description |
|---|---|
protected net.thevpc.nuts.NutsLogger |
_LOG(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsCompress |
addOptions(net.thevpc.nuts.NutsPathOption... pathOptions) |
net.thevpc.nuts.NutsCompress |
addSource(File source) |
net.thevpc.nuts.NutsCompress |
addSource(InputStream source) |
net.thevpc.nuts.NutsCompress |
addSource(net.thevpc.nuts.NutsPath source) |
net.thevpc.nuts.NutsCompress |
addSource(Path source) |
net.thevpc.nuts.NutsCompress |
addSource(String source) |
net.thevpc.nuts.NutsCompress |
addSource(URL source) |
net.thevpc.nuts.NutsCompress |
clearOptions() |
String |
getFormat() |
Object |
getFormatOption(String option) |
Set<net.thevpc.nuts.NutsPathOption> |
getOptions() |
net.thevpc.nuts.NutsProgressFactory |
getProgressFactory()
return progress factory responsible of creating progress monitor
|
net.thevpc.nuts.NutsSession |
getSession() |
List<Object> |
getSources() |
int |
getSupportLevel(net.thevpc.nuts.spi.NutsSupportLevelContext context) |
Object |
getTarget() |
boolean |
isSafe() |
boolean |
isSkipRoot() |
net.thevpc.nuts.NutsCompress |
removeOptions(net.thevpc.nuts.NutsPathOption... pathOptions) |
net.thevpc.nuts.NutsCompress |
run() |
void |
runZip() |
net.thevpc.nuts.NutsCompress |
setFormat(String format) |
net.thevpc.nuts.NutsCompress |
setFormatOption(String option,
Object value) |
net.thevpc.nuts.NutsCompress |
setProgressFactory(net.thevpc.nuts.NutsProgressFactory value)
set progress factory responsible of creating progress monitor
|
net.thevpc.nuts.NutsCompress |
setProgressMonitor(net.thevpc.nuts.NutsProgressMonitor value)
set progress monitor.
|
net.thevpc.nuts.NutsCompress |
setSafe(boolean value) |
net.thevpc.nuts.NutsCompress |
setSession(net.thevpc.nuts.NutsSession session) |
net.thevpc.nuts.NutsCompress |
setSkipRoot(boolean value) |
net.thevpc.nuts.NutsCompress |
setTarget(File target) |
net.thevpc.nuts.NutsCompress |
setTarget(net.thevpc.nuts.NutsPath target) |
net.thevpc.nuts.NutsCompress |
setTarget(OutputStream target) |
net.thevpc.nuts.NutsCompress |
setTarget(Path target) |
net.thevpc.nuts.NutsCompress |
setTarget(String target) |
net.thevpc.nuts.NutsCompress |
to(File target) |
net.thevpc.nuts.NutsCompress |
to(net.thevpc.nuts.NutsPath target) |
net.thevpc.nuts.NutsCompress |
to(OutputStream target) |
net.thevpc.nuts.NutsCompress |
to(Path target) |
net.thevpc.nuts.NutsCompress |
to(String target) |
public DefaultNutsCompress(net.thevpc.nuts.NutsSession session)
public int getSupportLevel(net.thevpc.nuts.spi.NutsSupportLevelContext context)
getSupportLevel in interface net.thevpc.nuts.spi.NutsComponentprotected net.thevpc.nuts.NutsLogger _LOG(net.thevpc.nuts.NutsSession session)
public void runZip()
public net.thevpc.nuts.NutsCompress setFormatOption(String option, Object value)
setFormatOption in interface net.thevpc.nuts.NutsCompresspublic Object getFormatOption(String option)
getFormatOption in interface net.thevpc.nuts.NutsCompresspublic String getFormat()
getFormat in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress setFormat(String format)
setFormat in interface net.thevpc.nuts.NutsCompresspublic List<Object> getSources()
getSources in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress addSource(String source)
addSource in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress addSource(InputStream source)
addSource in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress addSource(File source)
addSource in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress addSource(Path source)
addSource in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress addSource(URL source)
addSource in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress addSource(net.thevpc.nuts.NutsPath source)
addSource in interface net.thevpc.nuts.NutsCompresspublic Object getTarget()
getTarget in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress setTarget(OutputStream target)
setTarget in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress setTarget(Path target)
setTarget in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress setTarget(File target)
setTarget in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress setTarget(String target)
setTarget in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress setTarget(net.thevpc.nuts.NutsPath target)
setTarget in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress to(net.thevpc.nuts.NutsPath target)
to in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress to(OutputStream target)
to in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress to(String target)
to in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress to(Path target)
to in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress to(File target)
to in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsSession getSession()
getSession in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress setSession(net.thevpc.nuts.NutsSession session)
setSession in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress run()
run in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsProgressFactory getProgressFactory()
getProgressFactory in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress setProgressFactory(net.thevpc.nuts.NutsProgressFactory value)
setProgressFactory in interface net.thevpc.nuts.NutsCompressvalue - new valuethis instancepublic net.thevpc.nuts.NutsCompress setProgressMonitor(net.thevpc.nuts.NutsProgressMonitor value)
setProgressMonitor in interface net.thevpc.nuts.NutsCompressvalue - new valuethis instancepublic boolean isSafe()
isSafe in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress setSafe(boolean value)
setSafe in interface net.thevpc.nuts.NutsCompresspublic boolean isSkipRoot()
isSkipRoot in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress setSkipRoot(boolean value)
setSkipRoot in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress addOptions(net.thevpc.nuts.NutsPathOption... pathOptions)
addOptions in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress removeOptions(net.thevpc.nuts.NutsPathOption... pathOptions)
removeOptions in interface net.thevpc.nuts.NutsCompresspublic net.thevpc.nuts.NutsCompress clearOptions()
clearOptions in interface net.thevpc.nuts.NutsCompresspublic Set<net.thevpc.nuts.NutsPathOption> getOptions()
getOptions in interface net.thevpc.nuts.NutsCompressCopyright © 2022 vpc open source initiative. All rights reserved.