net.sf.lpr.daemon
Enum PrintType
java.lang.Object
java.lang.Enum<PrintType>
net.sf.lpr.daemon.PrintType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<PrintType>
public enum PrintType
- extends java.lang.Enum<PrintType>
Enumeration that holds the single character code that is used to send to the LPD server to have it print the different types of files
- Author:
- x_sid
Method Summary |
char |
getCommand()
return the single character code for the specific file type |
static PrintType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static PrintType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
Methods inherited from class java.lang.Enum |
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
DVI
public static final PrintType DVI
FORMATTED
public static final PrintType FORMATTED
PLOT
public static final PrintType PLOT
LEAVING_CONTROL_CHARACTERS
public static final PrintType LEAVING_CONTROL_CHARACTERS
DITROFF
public static final PrintType DITROFF
POSTSCRIPT
public static final PrintType POSTSCRIPT
PR_FORMAT
public static final PrintType PR_FORMAT
FORTRAN
public static final PrintType FORTRAN
TROFF
public static final PrintType TROFF
RASTER
public static final PrintType RASTER
values
public static PrintType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (PrintType c : PrintType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static PrintType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
getCommand
public char getCommand()
- return the single character code for the specific file type
- Returns:
- the single character code.