|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.as400.access.PrintObject
com.ibm.as400.access.PrinterFile
public class PrinterFile extends PrintObject implements 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.
| Modifier and Type | Field and Description |
|---|
| Constructor and Description |
|---|
PrinterFile()
Constructs a PrinterFile object. |
PrinterFile(AS400 system,
String printerFileName)
Constructs a PrinterFile object. |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of the printer file. |
String |
getPath()
Returns the integrated file system pathname of the printer file. |
void |
setAttributes(PrintParameterList attributes)
Sets one or more attributes of the object. |
void |
setPath(String path)
Sets the integrated file system pathname of the printer file. |
| Methods inherited from class com.ibm.as400.access.PrintObject |
|---|
addPropertyChangeListener, addVetoableChangeListener, getFloatAttribute, getIntegerAttribute, getSingleFloatAttribute, getSingleIntegerAttribute, getSingleStringAttribute, getStringAttribute, getSystem, removePropertyChangeListener, removeVetoableChangeListener, setSystem, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PrinterFile()
PrintObject.setSystem(com.ibm.as400.access.AS400),
setPath(java.lang.String)
public PrinterFile(AS400 system,
String printerFileName)
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 |
|---|
public String getName()
public String getPath()
public void setAttributes(PrintParameterList attributes)
throws AS400Exception,
AS400SecurityException,
ErrorCompletingRequestException,
IOException,
InterruptedException
attributes - A print parameter list that contains the
attributes to be changed.AS400Exception - If the system returns an error message.AS400SecurityException - If a security or authority error occurs.ErrorCompletingRequestException - If an error occurs before the request is completed.IOException - If an error occurs while communicating with the system.InterruptedException - If this thread is interrupted.
public void setPath(String path)
throws PropertyVetoException
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.PropertyVetoException - If the change is vetoed.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||