All Packages Class Hierarchy This Package Previous Next Index
Class com.starla.lite.SMBPrintSession
java.lang.Object
|
+----com.starla.lite.SMBSession
|
+----com.starla.lite.SMBPrintSession
- public abstract class SMBPrintSession
- extends SMBSession
SMB print session class
The print session allows a new print job to be created, using the SMBFile
class or as an SMBOutputStream.
When the SMBFile/SMBOutputStream is closed the print job will be queued to
the remote printer.
A print session is created using the SMBSessionFactory.OpenPrinter () method. The
SMBSessionFactory negotiates the appropriate SMB dialect and creates the appropriate
SMBPrintSession derived object.
- Version:
- 1.0
-
DefaultEntryCount
- Default number of print queue entries to return
-
GraphicsMode
-
-
TextMode
- Print modes
-
OpenSpoolFile(String, int, int)
- Open a spool file on the remote print server.
-
OpenSpoolStream(String, int, int)
- Open a spool file as an output stream.
TextMode
public static final int TextMode
- Print modes
GraphicsMode
public static final int GraphicsMode
DefaultEntryCount
public static final int DefaultEntryCount
- Default number of print queue entries to return
OpenSpoolFile
public abstract SMBFile OpenSpoolFile(String id,
int mode,
int setuplen) throws IOException
- Open a spool file on the remote print server.
- Parameters:
- id - Identifier string for this print request.
- mode - Print mode, either TextMode or GraphicsMode.
- setuplen - Length of data in the start of the spool file that is printer
setup code.
- Returns:
- SMBFile for the new spool file, else null.
- Throws: IOException
- If an I/O error occurs.
OpenSpoolStream
public SMBOutputStream OpenSpoolStream(String id,
int mode,
int setuplen) throws IOException
- Open a spool file as an output stream.
- Parameters:
- id - Identifier string for this print request.
- mode - Print mode, either TextMode or GraphicsMode.
- setuplen - Length of data in the start of the spool file that is printer
setup code.
- Returns:
- SMBOutputStream for the spool file, else null.
- Throws: IOException
- If an I/O error occurs.
All Packages Class Hierarchy This Package Previous Next Index