org.gnu.jcifs
Interface CifsPrinter

All Superinterfaces:
CifsSession
All Known Implementing Classes:
PrinterImpl

public interface CifsPrinter
extends CifsSession

CifsPrinter implements the printer operations. CifsPrinter cannot be instantiated directly

Since:
1.0
See Also:
org.gnu.jcifs.CifsServiceManager

Field Summary
static int GRAPHICS_MODE
          No conversion of data should be done by the server
static int TEXT_MODE
          The server may optinally expand tabs to a series of spaces
 
Method Summary
 CifsPrinterSpoolInfo[] listPrinterSpoolInfo()
          Enumerates the list of the elements currently in the printer queue on the server
 CifsPrintOutputStream openPrintFile(java.lang.String printid, int mode)
          Creates a new print spool file.
 
Methods inherited from interface org.gnu.jcifs.CifsSession
disconnect, echo, getConnectTime, getNetBIOSName, getProperty, getServerAddress, getServerLanMan, getServerOS, getServerPrimaryDomain, getServerTime, getServerTimeZone, getSessionName, getShareName, isConnected, isUserLevelSecurity, reconnect, setAllowAutoReconnection, setProperty
 

Field Detail

TEXT_MODE

public static final int TEXT_MODE
The server may optinally expand tabs to a series of spaces

GRAPHICS_MODE

public static final int GRAPHICS_MODE
No conversion of data should be done by the server
Method Detail

listPrinterSpoolInfo

public CifsPrinterSpoolInfo[] listPrinterSpoolInfo()
                                            throws java.io.IOException
Enumerates the list of the elements currently in the printer queue on the server
Returns:
CifsPrinterSpoolInfo array

openPrintFile

public CifsPrintOutputStream openPrintFile(java.lang.String printid,
                                           int mode)
                                    throws java.io.IOException
Creates a new print spool file. The setup length is 0.
Parameters:
printid - can be used by the server to provide some sort of per-client identifying component to the print file
mode - TEXT_MODE or GRAPHICS_MODE
See Also:
and #GRAPHICS_MODE