com.numdata.printer
Enum PrinterSettings.Method

java.lang.Object
  extended by java.lang.Enum<PrinterSettings.Method>
      extended by com.numdata.printer.PrinterSettings.Method
All Implemented Interfaces:
Serializable, Comparable<PrinterSettings.Method>
Enclosing class:
PrinterSettings

public static enum PrinterSettings.Method
extends Enum<PrinterSettings.Method>

Printing method.


Enum Constant Summary
JPS
          Java Print Service API.
LPD
          LPD connection.
SMB
          SMB connection.
SOCKET
          Socket connection.
VOID
          Into the void (do not print).
 
Method Summary
static PrinterSettings.Method valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PrinterSettings.Method[] 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
 

Enum Constant Detail

LPD

public static final PrinterSettings.Method LPD
LPD connection.


SMB

public static final PrinterSettings.Method SMB
SMB connection.


JPS

public static final PrinterSettings.Method JPS
Java Print Service API.


SOCKET

public static final PrinterSettings.Method SOCKET
Socket connection.


VOID

public static final PrinterSettings.Method VOID
Into the void (do not print).

Method Detail

values

public static PrinterSettings.Method[] 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 (PrinterSettings.Method c : PrinterSettings.Method.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PrinterSettings.Method valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2017 Numdata BV. All rights reserved.