File: CodecMode.java

package info (click to toggle)
java-imaging-utilities 0.14.3-7
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 2,556 kB
  • sloc: java: 31,233; python: 71; xml: 31; makefile: 26; sh: 5
file content (35 lines) | stat: -rw-r--r-- 900 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * CodecMode
 *
 * Copyright (c) 2000, 2001 Marco Schmidt.
 * All rights reserved.
 */

package net.sourceforge.jiu.codecs;

/**
 * This class is an enumeration type for the two modes that an image codec can be used in,
 * {@link #LOAD} and {@link #SAVE}.
 * These values are used as arguments in some of the methods of {@link ImageCodec}.
 *
 * @author Marco Schmidt
 * @since 0.7.0
 */
public final class CodecMode
{
	private CodecMode()
	{
	}

	/**
	 * Codec mode <em>load</em>, one of the two possible values of CodecMode.
	 * To be used with a codec to indicate that an image is to be read from a stream.
	 */
	public static final CodecMode LOAD = new CodecMode();

	/**
	 * Codec mode <em>save</em>, one of the two possible values of CodecMode.
	 * To be used with a codec to indicate that an image is to be written to a stream.
	 */
	public static final CodecMode SAVE = new CodecMode();
}