Package org.mozilla.universalchardet.prober.statemachine

Examples of org.mozilla.universalchardet.prober.statemachine.CodingStateMachine


    // methods
    ////////////////////////////////////////////////////////////////
    public GB18030Prober()
    {
        super();
        this.codingSM = new CodingStateMachine(smModel);
        this.distributionAnalyzer = new GB2312DistributionAnalysis();
        this.lastChar = new byte[2];
        reset();
    }
View Full Code Here


    public EscCharsetProber()
    {
        super();

        this.codingSM = new CodingStateMachine[4];
        this.codingSM[0] = new CodingStateMachine(hzsModel);
        this.codingSM[1] = new CodingStateMachine(iso2022cnModel);
        this.codingSM[2] = new CodingStateMachine(iso2022jpModel);
        this.codingSM[3] = new CodingStateMachine(iso2022krModel);

        reset();
    }
View Full Code Here

                    --this.activeSM;
                    if (this.activeSM <= 0) {
                        this.state = ProbingState.NOT_ME;
                        return this.state;
                    } else if (j != this.activeSM) {
                        CodingStateMachine t;
                        t = this.codingSM[this.activeSM];
                        this.codingSM[this.activeSM] = this.codingSM[j];
                        this.codingSM[j] = t;
                    }
                } else if (codingState == SMModel.ITSME) {
View Full Code Here

    // methods
    ////////////////////////////////////////////////////////////////
    public EUCKRProber()
    {
        super();
        this.codingSM = new CodingStateMachine(smModel);
        this.distributionAnalyzer = new EUCKRDistributionAnalysis();
        this.lastChar = new byte[2];
        reset();
    }
View Full Code Here

    ////////////////////////////////////////////////////////////////
    public UTF8Prober()
    {
        super();
        this.numOfMBChar = 0;
        this.codingSM = new CodingStateMachine(smModel);

        reset();
    }
View Full Code Here

    // methods
    ////////////////////////////////////////////////////////////////
    public EUCTWProber()
    {
        super();
        this.codingSM = new CodingStateMachine(smModel);
        this.distributionAnalyzer = new EUCTWDistributionAnalysis();
        this.lastChar = new byte[2];
        reset();
    }
View Full Code Here

    // methods
    ////////////////////////////////////////////////////////////////
    public Big5Prober()
    {
        super();
        this.codingSM = new CodingStateMachine(smModel);
        this.distributionAnalyzer = new Big5DistributionAnalysis();
        this.lastChar = new byte[2];
        reset();
    }
View Full Code Here

    // methods
    ////////////////////////////////////////////////////////////////
    public EUCJPProber()
    {
        super();
        this.codingSM = new CodingStateMachine(smModel);
        this.contextAnalyzer = new EUCJPContextAnalysis();
        this.distributionAnalyzer = new EUCJPDistributionAnalysis();
        this.lastChar = new byte[2];
        reset();
    }
View Full Code Here

    // methods
    ////////////////////////////////////////////////////////////////
    public SJISProber()
    {
        super();
        this.codingSM = new CodingStateMachine(smModel);
        this.contextAnalyzer = new SJISContextAnalysis();
        this.distributionAnalyzer = new SJISDistributionAnalysis();
        this.lastChar = new byte[2];
        reset();
    }
View Full Code Here

TOP

Related Classes of org.mozilla.universalchardet.prober.statemachine.CodingStateMachine

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.