com.ibm.as400.access

Class Printer

  • All Implemented Interfaces:
    java.io.Serializable


    public class Printer
    extends PrintObject
    implements java.io.Serializable
    The Printer class represents a printer. An instance of this class can be used to manipulate an individual printer. See Printer Attributes for valid attributes.
    See Also:
    Serialized Form
    • Constructor Detail

      • Printer

        public Printer(AS400 system,
               java.lang.String printerName)
        Constructs a Printer object. It uses the specified system name and the printer name that identifies it on that system.
        Parameters:
        system - The system on which this printer device exists.
        printerName - The name of the printer. It cannot be greater than 10 characters or less than 1 character in length.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the printer.
        Returns:
        The name of the printer. If name is not set, "" is returned.
      • setName

        public void setName(java.lang.String name)
                     throws java.beans.PropertyVetoException
        Sets the name of the printer.
        Parameters:
        name - The name of the printer. It cannot be greater than 10 characters.
        Throws:
        java.beans.PropertyVetoException - If the change is vetoed.