001/*
002 * Licensed to the Apache Software Foundation (ASF) under one or more
003 * contributor license agreements.  See the NOTICE file distributed with
004 * this work for additional information regarding copyright ownership.
005 * The ASF licenses this file to You under the Apache License, Version 2.0
006 * (the "License"); you may not use this file except in compliance with
007 * the License.  You may obtain a copy of the License at
008 *
009 *      http://www.apache.org/licenses/LICENSE-2.0
010 *
011 * Unless required by applicable law or agreed to in writing, software
012 * distributed under the License is distributed on an "AS IS" BASIS,
013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014 * See the License for the specific language governing permissions and
015 * limitations under the License.
016 */
017package org.apache.commons.imaging;
018
019/**
020 * Enum of known image formats.
021 */
022public enum ImageFormats implements ImageFormat {
023    UNKNOWN,
024    BMP,
025    DCX,
026    GIF,
027    ICNS,
028    ICO,
029    JBIG2,
030    JPEG,
031    PAM,
032    PSD,
033    PBM,
034    PGM,
035    PNM,
036    PPM,
037    PCX,
038    PNG,
039    RGBE,
040    TGA,
041    TIFF,
042    WBMP,
043    XBM,
044    XPM;
045
046    @Override
047    public String getName() {
048        return name();
049    }
050
051    @Override
052    public String getExtension() {
053        return name();
054    }
055}