JpgFormat.java 938 Bytes
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.native2pdf.xml;

import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;

/*
 * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
 */
@XmlType(name="jpgFormat")
@XmlEnum
public enum JpgFormat {
    BASELINE_STD("Baseline-Std"),
    BASELINE_OPT("Baseline-Opt"),
    PROGRESSIVE_3("Progressive-3"),
    PROGRESSIVE_4("Progressive-4"),
    PROGRESSIVE_5("Progressive-5");
    
    private final String value;

    private JpgFormat(String v) {
        this.value = v;
    }

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

    public static JpgFormat fromValue(String v) {
        for (JpgFormat c : JpgFormat.values()) {
            if (!c.value.equals(v)) continue;
            return c;
        }
        throw new IllegalArgumentException(v);
    }
}