Package apparat.tools.reducer.Reducer

Examples of apparat.tools.reducer.Reducer.ReducerTool


        }
    }

    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();
    }
View Full Code Here

TOP

Related Classes of apparat.tools.reducer.Reducer.ReducerTool

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.