com.starla.smb
Class SMBPrinterList

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

public class SMBPrinterList
extends java.lang.Object

SMB printer list class

The SMBPrinterList class contains a list of SMBPrintQueueInfo ojbects, which contain details of a remote print queue.

The SMBAdminSession.getPrinterList () method returns an SMBPrinterList containing the list of remote print queues on the remote server.


Constructor Summary
SMBPrinterList()
          Class constructor
 
Method Summary
 void addPrinterInfo(SMBPrintQueueInfo prninf)
          Add a printer queue information object to the list.
 void clearList()
          Clear all printer information objects from the list
 SMBPrintQueueInfo getPrinterInfo(int idx)
          Get a printer queue information object from the list
 int NumberOfPrinters()
          Get the number of printers in the list
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SMBPrinterList

public SMBPrinterList()
Class constructor
Method Detail

addPrinterInfo

public final void addPrinterInfo(SMBPrintQueueInfo prninf)
Add a printer queue information object to the list.
Parameters:
srvinf - SMBPrintQueueInfo to add to the list.

clearList

public final void clearList()
Clear all printer information objects from the list

getPrinterInfo

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

NumberOfPrinters

public final int NumberOfPrinters()
Get the number of printers in the list
Returns:
Number of SMBPrintQueueInfo objects in the list.