All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.vorb.tesseract.PageIteratorLevel Maven / Gradle / Ivy

package de.vorb.tesseract;

import java.util.Collections;
import java.util.Iterator;

import org.bridj.FlagSet;
import org.bridj.IntValuedEnum;

/**
 * PageIterator level.
 * 
 * @author Paul Vorbach
 */
public enum PageIteratorLevel implements
        IntValuedEnum {
    BLOCK(0),
    PARA(1),
    TEXTLINE(2),
    WORD(3),
    SYMBOL(4);

    PageIteratorLevel(long value) {
        this.value = value;
    }

    public final long value;

    public long value() {
        return this.value;
    }

    public Iterator iterator() {
        return Collections.singleton(this).iterator();
    }

    public static IntValuedEnum fromValue(int value) {
        return FlagSet.fromValue(value, values());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy