001 /* 002 * CodecMode 003 * 004 * Copyright (c) 2000, 2001 Marco Schmidt. 005 * All rights reserved. 006 */ 007 008 package net.sourceforge.jiu.codecs; 009 010 /** 011 * This class is an enumeration type for the two modes that an image codec can be used in, 012 * {@link #LOAD} and {@link #SAVE}. 013 * These values are used as arguments in some of the methods of {@link ImageCodec}. 014 * 015 * @author Marco Schmidt 016 * @since 0.7.0 017 */ 018 public final class CodecMode 019 { 020 private CodecMode() 021 { 022 } 023 024 /** 025 * Codec mode <em>load</em>, one of the two possible values of CodecMode. 026 * To be used with a codec to indicate that an image is to be read from a stream. 027 */ 028 public static final CodecMode LOAD = new CodecMode(); 029 030 /** 031 * Codec mode <em>save</em>, one of the two possible values of CodecMode. 032 * To be used with a codec to indicate that an image is to be written to a stream. 033 */ 034 public static final CodecMode SAVE = new CodecMode(); 035 }