net.sf.lpr
Class LPRFORTRAN

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

public class LPRFORTRAN
extends AbstractPrint
implements LPR

Sends a FORTRAN formated file to the LPD server to be printed

Author:
x_sid

Constructor Summary
LPRFORTRAN(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 FORTRAN file to the server
 
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

LPRFORTRAN

public LPRFORTRAN(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 FORTRAN file to the server

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