net.sf.lpr
Class LPRLeavingControlCharacters

java.lang.Object
  extended by net.sf.lpr.spi.AbstractPrint
      extended by net.sf.lpr.LPRLeavingControlCharacters
All Implemented Interfaces:
LPR

public class LPRLeavingControlCharacters
extends AbstractPrint
implements LPR

Send a file to the LPD server that will leave the control characters in the file

Author:
x_sid

Constructor Summary
LPRLeavingControlCharacters(java.lang.String serverName, java.lang.String username, java.lang.String printQueue, java.lang.String filename, java.io.InputStream toPrint, long toPrintLength)
          Construct a call to the LPD server to send a file to the server that will leave the control characters
 
Method Summary
protected  PrintType getPrintJobType()
           
 
Methods inherited from class net.sf.lpr.spi.AbstractPrint
print
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.lpr.LPR
print
 

Constructor Detail

LPRLeavingControlCharacters

public LPRLeavingControlCharacters(java.lang.String serverName,
                                   java.lang.String username,
                                   java.lang.String printQueue,
                                   java.lang.String filename,
                                   java.io.InputStream toPrint,
                                   long toPrintLength)
Construct a call to the LPD server to send a file to the server that will leave the control characters

Parameters:
serverName - the name of the server that the print queue is running on
username - the name of the user that will be sent to the server as requesting the print request
printQueue - the queue on the LPD server that the postscript file will be sent to
filename - this is a generic filename that will be used to identify the file. It is really just a simple identifier.
toPrint - the InputStream that will be read and sent to the server to be printed. It is not closed by this class.
toPrintLength - the length of the InputStream that is to be printed. This is needed because the spec needs to know how long the actual file to be printed is when the control file is sent to the LPD server
Method Detail

getPrintJobType

protected PrintType getPrintJobType()
Specified by:
getPrintJobType in class AbstractPrint