}
}
protected void reduce( final File input, final File output )
{
ReducerTool s = new ReducerTool();
ReducerConfiguration cfg = new ReducerConfiguration()
{
public float deblock()
{
return reduceDeblock;
}
public File input()
{
return input;
}
public boolean lzma()
{
return reduceLzma;
}
public int matryoshkaType()
{
if ( reduceMatryoshkaType.equalsIgnoreCase( "quiet" ) )
{
return MatryoshkaType.QUIET();
}
else if ( reduceMatryoshkaType.equalsIgnoreCase( "preloader" ) )
{
return MatryoshkaType.PRELOADER();
}
else if ( reduceMatryoshkaType.equalsIgnoreCase( "custom" ) )
{
return MatryoshkaType.CUSTOM();
}
else
{
return MatryoshkaType.NONE();
}
}
@SuppressWarnings( "unchecked" )
public Option<File> matryoshka()
{
return ( null == reduceMatryoshka ) ? None$.MODULE$ : new Some( reduceMatryoshka );
}
public boolean mergeABC()
{
return reduceMergeABC;
}
public File output()
{
return output;
}
public float quality()
{
return reduceQuality;
}
public boolean sortCPool()
{
return reduceSortCPool;
}
public boolean mergeCF()
{
return reduceMergeCF;
}
};
s.configure( cfg );
s.run();
}