com.starla.smb
Class SMBPrintSession
java.lang.Object
|
+--com.starla.smb.SMBSession
|
+--com.starla.smb.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.
Method Summary |
abstract SMBFile |
OpenSpoolFile(java.lang.String id,
int mode,
int setuplen)
Open a spool file on the remote print server. |
SMBOutputStream |
OpenSpoolStream(java.lang.String id,
int mode,
int setuplen)
Open a spool file as an output stream. |
Methods inherited from class com.starla.smb.SMBSession |
CloseSession,
getDeviceType,
getDialect,
getDomain,
getEncryptionKey,
getLANManagerType,
getMaximumPacketSize,
getOperatingSystem,
getPassword,
getServer,
getSessionFlag,
getSessionId,
getShareName,
getUserId,
getUserName,
hasDebugOption,
isActive,
isDebug,
print,
println,
println,
setDebug,
setEncryptionKey,
setRawMode,
setSecurityMode,
toString |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
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(java.lang.String id,
int mode,
int setuplen)
throws java.io.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:
- java.io.IOException - If an I/O error occurs.
OpenSpoolStream
public SMBOutputStream OpenSpoolStream(java.lang.String id,
int mode,
int setuplen)
throws java.io.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:
- java.io.IOException - If an I/O error occurs.