com.ibm.as400.access

Class PrinterFile

  • All Implemented Interfaces:
    java.io.Serializable


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

      • PrinterFile

        public PrinterFile()
        Constructs a PrinterFile object. The system and the integrated file system name of the printer file must be set later. This constructor is provided for visual application builders that support JavaBeans. It is not intended for use by application programmers.
        See Also:
        PrintObject.setSystem(com.ibm.as400.access.AS400), setPath(java.lang.String)
      • PrinterFile

        public PrinterFile(AS400 system,
                   java.lang.String printerFileName)
        Constructs a PrinterFile object. It uses the specified system name and printer file that identify it on the system.
        Parameters:
        system - The system on which this printer file exists.
        printerFileName - The integrated file system name of the printer file. The format of the printer file string must be in the format of \QSYS.LIB\libname.LIB\printerfilename.FILE.
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the printer file.
        Returns:
        The name of the printer file.
      • getPath

        public java.lang.String getPath()
        Returns the integrated file system pathname of the printer file.
        Returns:
        The integrated file system pathname of the printer file.
      • setPath

        public void setPath(java.lang.String path)
                     throws java.beans.PropertyVetoException
        Sets the integrated file system pathname of the printer file.
        Parameters:
        path - The integrated file system name of the printer file. The format of the printer file string must be in the format of \QSYS.LIB\libname.LIB\printerfilename.FILE.
        Throws:
        java.beans.PropertyVetoException - If the change is vetoed.