net.sf.lpr
Class LPRLeavingControlCharacters
java.lang.Object
net.sf.lpr.spi.AbstractPrint
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 |
| 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 |
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 onusername - the name of the user that will be sent to the server as requesting the print requestprintQueue - the queue on the LPD server that the postscript file will be sent tofilename - 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
getPrintJobType
protected PrintType getPrintJobType()
- Specified by:
getPrintJobType in class AbstractPrint