All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.as400.access.PrinterFile

java.lang.Object
   |
   +----com.ibm.as400.access.PrintObject
           |
           +----com.ibm.as400.access.PrinterFile

public class PrinterFile
extends PrintObject
implements Serializable
The PrinterFile class represents an AS/400 printer file. An instance of this class can be used to manipulate an individual AS/400 printer file. See Printer File Attributes for valid attributes.


Constructor Index

 o PrinterFile()
Constructs a PrinterFile object.
 o PrinterFile(AS400, String)
Constructs a PrinterFile object.

Method Index

 o getName()
Returns the name of the printer file.
 o getPath()
Returns the integrated file system pathname of the printer file.
 o setAttributes(PrintParameterList)
Sets one or more attributes of the object.
 o setPath(String)
Sets the integrated file system pathname of the printer file.

Constructors

 o PrinterFile
 public PrinterFile()
Constructs a PrinterFile object. The AS/400 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:
setSystem, setPath
 o PrinterFile
 public PrinterFile(AS400 system,
                    String printerFileName)
Constructs a PrinterFile object. It uses the specified system name and printer file that identify it on the system.

Parameters:
system - The AS/400 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.

Methods

 o getName
 public String getName()
Returns the name of the printer file.

Returns:
The name of the printer file.
 o getPath
 public String getPath()
Returns the integrated file system pathname of the printer file.

Returns:
The integrated file system pathname of the printer file.
 o setAttributes
 public void setAttributes(PrintParameterList attributes) throws AS400Exception, AS400SecurityException, ErrorCompletingRequestException, IOException, InterruptedException
Sets one or more attributes of the object. See Printer File Attributes for a list of valid attributes that can be changed.

Parameters:
attributes - A print parameter list that contains the attributes to be changed.
Throws: AS400Exception
If the AS/400 system returns an error message.
Throws: AS400SecurityException
If a security or authority error occurs.
Throws: ErrorCompletingRequestException
If an error occurs before the request is completed.
Throws: IOException
If an error occurs while communicating with the AS/400.
Throws: InterruptedException
If this thread is interrupted.
 o setPath
 public void setPath(String path) throws 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: PropertyVetoException
If the change is vetoed.

All Packages  Class Hierarchy  This Package  Previous  Next  Index