|
|||||||||||
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
The PrinterFile class represents a server printer file. An instance of this class can be used to manipulate an individual printer file. See Printer File Attributes for valid attributes.
Field Summary |
---|
Constructor Summary | |
---|---|
PrinterFile()
Constructs a PrinterFile object. |
|
PrinterFile(AS400 system,
String printerFileName)
Constructs a PrinterFile object. |
Method Summary | |
---|---|
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 server 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 server 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 server.
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 |