com.starla.smb
Class SMBPrintJobList

java.lang.Object
  |
  +--com.starla.smb.SMBPrintJobList

public final class SMBPrintJobList
extends java.lang.Object

SMB print job list class

The SMBPrintJobList class contains a list of SMBPrintJob objects.

The SMBAdminSession.getPrintJobs () method returns an SMBPrintJobList containing the active/pending print jobs for the specified remote print queue.


Constructor Summary
SMBPrintJobList()
          Class constructor
 
Method Summary
 void addPrintJob(SMBPrintJob prnjob)
          Add a print job object to the list.
 void clearList()
          Clear all print jobs from the list
 SMBPrintJob getPrintJob(int idx)
          Get a print job object from the list
 int NumberOfJobs()
          Get the number of print jobs in the list
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMBPrintJobList

public SMBPrintJobList()
Class constructor
Method Detail

addPrintJob

public final void addPrintJob(SMBPrintJob prnjob)
Add a print job object to the list.
Parameters:
srvinf - SMBPrintJob to add to the list.

clearList

public final void clearList()
Clear all print jobs from the list

getPrintJob

public final SMBPrintJob getPrintJob(int idx)
                              throws java.lang.ArrayIndexOutOfBoundsException
Get a print job object from the list
Parameters:
idx - Index of the print job to return
Returns:
SMBPrintJob for the required printer.
Throws:
java.lang.ArrayIndexOutOfBoundsException - If the index is invalid

NumberOfJobs

public final int NumberOfJobs()
Get the number of print jobs in the list
Returns:
Number of SMBPrintJob objects in the list.