net.sf.lpr
Class LPRDVI
java.lang.Object
net.sf.lpr.spi.AbstractPrint
net.sf.lpr.LPRDVI
- All Implemented Interfaces:
- LPR
public class LPRDVI
- extends AbstractPrint
- implements LPR
Sends a DVI file to the LPD server to be printed
- Author:
- x_sid
Constructor Summary |
LPRDVI(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 DVI file to the server |
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 |
LPRDVI
public LPRDVI(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 DVI file to the server
- 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