A C D G I L N P R S U V Z

A

AbortJob - Class in net.sf.lpr.daemon.subcommands
 
AbortJob(PrintStream, InputStream) - Constructor for class net.sf.lpr.daemon.subcommands.AbortJob
 
AbstractDaemonCommand - Class in net.sf.lpr.daemon.commands.spi
Basic boiler plate code for LPD commands to the server.
AbstractDaemonCommand(PrintStream, InputStream) - Constructor for class net.sf.lpr.daemon.commands.spi.AbstractDaemonCommand
Constructs the basic object for sending a single daemon command to the LPD server
AbstractPrint - Class in net.sf.lpr.spi
Implements the LPR interface.
AbstractPrint(String, String, String, String, InputStream, long) - Constructor for class net.sf.lpr.spi.AbstractPrint
Construct a call to the LPD server to send a file to the server
AbstractQueueDepth - Class in net.sf.lpr.spi
Abstract class for sharing the basic code of querying the print queue for its depth.
AbstractQueueDepth(String, String, Writer) - Constructor for class net.sf.lpr.spi.AbstractQueueDepth
 
AbstractSendQueueState - Class in net.sf.lpr.daemon.commands.spi
This class houses the shared code that is used for querying the LPD server for it's state.
AbstractSendQueueState(PrintStream, InputStream, String, Writer) - Constructor for class net.sf.lpr.daemon.commands.spi.AbstractSendQueueState
Constructor for creating the parent class that does the boiler plate work.

C

checkResponse(byte[], Class<?>) - Static method in class net.sf.lpr.LPRUtils
This static method is used for clarity in code to provide a way to throw an exception if the response from the server does not match the expected two bytes of zero
copy(InputStream, OutputStream) - Static method in class net.sf.lpr.LPRUtils
Copies the contents of the InputStream to the OutputStream.

D

DaemonCommand - Interface in net.sf.lpr.daemon
Interface used to define what RFC 1179 calls a Daemon Command.

G

generateJobId() - Static method in class net.sf.lpr.LPRUtils
This method is used to in the high level API classes to generate job ID's that are required by the LPR protocol
getCode() - Method in class net.sf.lpr.daemon.commands.SendQueueStateLong
 
getCode() - Method in class net.sf.lpr.daemon.commands.SendQueueStateShort
 
getCode() - Method in class net.sf.lpr.daemon.commands.spi.AbstractSendQueueState
Concrete subclasses must implement this method to return the two digit code encoded with \0XX
getCommand() - Method in enum net.sf.lpr.daemon.PrintType
return the single character code for the specific file type
getHostname() - Static method in class net.sf.lpr.LPRUtils
Does it's best to return a host name for the machine that it is running on.
getPrintJobType() - Method in class net.sf.lpr.LPRAsBerkeleyUnixPlot
 
getPrintJobType() - Method in class net.sf.lpr.LPRDitroff
 
getPrintJobType() - Method in class net.sf.lpr.LPRDVI
 
getPrintJobType() - Method in class net.sf.lpr.LPRFORTRAN
 
getPrintJobType() - Method in class net.sf.lpr.LPRLeavingControlCharacters
 
getPrintJobType() - Method in class net.sf.lpr.LPRPlainText
 
getPrintJobType() - Method in class net.sf.lpr.LPRPostscript
 
getPrintJobType() - Method in class net.sf.lpr.spi.AbstractPrint
 
getSendQueueState(PrintStream, InputStream, String, Writer) - Method in class net.sf.lpr.LPRQueueDepthLong
 
getSendQueueState(PrintStream, InputStream, String, Writer) - Method in class net.sf.lpr.LPRQueueDepthShort
 
getSendQueueState(PrintStream, InputStream, String, Writer) - Method in class net.sf.lpr.spi.AbstractQueueDepth
 

I

IORuntimeException - Exception in net.sf.lpr.exception
This exception is thrown in place of all the IOException that are thrown by the low level Java stream IO API
IORuntimeException() - Constructor for exception net.sf.lpr.exception.IORuntimeException
 
IORuntimeException(String, Throwable) - Constructor for exception net.sf.lpr.exception.IORuntimeException
 
IORuntimeException(String) - Constructor for exception net.sf.lpr.exception.IORuntimeException
 
IORuntimeException(Throwable) - Constructor for exception net.sf.lpr.exception.IORuntimeException
 

L

LPR - Interface in net.sf.lpr
All classes that implement this interface are part of the high level API that most users would want use.
LPRAsBerkeleyUnixPlot - Class in net.sf.lpr
Used to send a Berkely Unix Plot file to the server to be printed
LPRAsBerkeleyUnixPlot(String, String, String, String, InputStream, long) - Constructor for class net.sf.lpr.LPRAsBerkeleyUnixPlot
Construct a call to the LPD server to send a Berkely Unix Plot file to the server
LPRDitroff - Class in net.sf.lpr
Sends a ditroff file to the LPD server to be printed
LPRDitroff(String, String, String, String, InputStream, long) - Constructor for class net.sf.lpr.LPRDitroff
Construct a call to the LPD server to send a ditroff file to the server
LPRDVI - Class in net.sf.lpr
Sends a DVI file to the LPD server to be printed
LPRDVI(String, String, String, String, InputStream, long) - Constructor for class net.sf.lpr.LPRDVI
Construct a call to the LPD server to send a DVI file to the server
LPRFORTRAN - Class in net.sf.lpr
Sends a FORTRAN formated file to the LPD server to be printed
LPRFORTRAN(String, String, String, String, InputStream, long) - Constructor for class net.sf.lpr.LPRFORTRAN
Construct a call to the LPD server to send a FORTRAN file to the server
LPRLeavingControlCharacters - Class in net.sf.lpr
Send a file to the LPD server that will leave the control characters in the file
LPRLeavingControlCharacters(String, String, String, String, InputStream, long) - Constructor for class net.sf.lpr.LPRLeavingControlCharacters
Construct a call to the LPD server to send a file to the server that will leave the control characters
LPRPlainText - Class in net.sf.lpr
Sends a plain text file to the LPD server to be printed
LPRPlainText(String, String, String, String, InputStream, long) - Constructor for class net.sf.lpr.LPRPlainText
Construct a call to the LPD server to send a plain text file to the server
LPRPostscript - Class in net.sf.lpr
Sends a postscript formated file to the LPD server to be printed on the provided print queue
LPRPostscript(String, String, String, String, InputStream, long) - Constructor for class net.sf.lpr.LPRPostscript
Construct a call to the LPD server to send a postscript file to the server
LPRQueueDepthLong - Class in net.sf.lpr
Concrete implementation that Queries the LPD server for its current depth passing the short code to the server.
LPRQueueDepthLong(String, String, Writer) - Constructor for class net.sf.lpr.LPRQueueDepthLong
Constructor to create a query for the LPD server to respond with the current depth of the print queue.
LPRQueueDepthShort - Class in net.sf.lpr
Concrete implementation that Queries the LPD server for its current depth passing the long code to the server.
LPRQueueDepthShort(String, String, Writer) - Constructor for class net.sf.lpr.LPRQueueDepthShort
Constructor to create a query for the LPD server to respond with the current depth of the print queue.
LPRUtils - Class in net.sf.lpr
Utility class for doing some of the dumb work that is needed in more than one place but makes little sense to have in a parent class.
LPRUtils() - Constructor for class net.sf.lpr.LPRUtils
 

N

net.sf.lpr - package net.sf.lpr
 
net.sf.lpr.daemon - package net.sf.lpr.daemon
 
net.sf.lpr.daemon.commands - package net.sf.lpr.daemon.commands
 
net.sf.lpr.daemon.commands.spi - package net.sf.lpr.daemon.commands.spi
 
net.sf.lpr.daemon.subcommands - package net.sf.lpr.daemon.subcommands
 
net.sf.lpr.exception - package net.sf.lpr.exception
 
net.sf.lpr.spi - package net.sf.lpr.spi
 

P

print() - Method in class net.sf.lpr.daemon.commands.spi.AbstractDaemonCommand
A call to this method will write the request to the constructor provided print parameter and read the response from the provided in parameter.
print() - Method in class net.sf.lpr.daemon.commands.spi.AbstractSendQueueState
A call to this method will send the query and read the response from the LPD server that is pointed at by the constructor provided PrintStream
print() - Method in interface net.sf.lpr.daemon.DaemonCommand
All classes that implement this interface will do their work when the print() is called.
print() - Method in class net.sf.lpr.daemon.subcommands.ReceiveControlFile
 
print() - Method in class net.sf.lpr.daemon.subcommands.ReceiveDataFile
writes the data file to the provided in the constructor with the PrintStream print argument
print() - Method in interface net.sf.lpr.LPR
All implementors of this class will do the actual writing to the LPD server with a call to this method.
print() - Method in class net.sf.lpr.spi.AbstractPrint
Call print once the actual call to the LPD server needs to be made.
print() - Method in class net.sf.lpr.spi.AbstractQueueDepth
call this method to actually make the request to the LPD server.
PrintAnyWaitingJobs - Class in net.sf.lpr.daemon.commands
Request that the LPD server print any waiting jobs.
PrintAnyWaitingJobs(PrintStream, InputStream, String) - Constructor for class net.sf.lpr.daemon.commands.PrintAnyWaitingJobs
Construct the request to be made to the server for printing any waiting jobs.
printCommand(PrintStream) - Method in class net.sf.lpr.daemon.commands.PrintAnyWaitingJobs
 
printCommand(PrintStream) - Method in class net.sf.lpr.daemon.commands.ReceivePrinterJob
 
printCommand(PrintStream) - Method in class net.sf.lpr.daemon.commands.spi.AbstractDaemonCommand
This method needs to be implemented for the daemon command that actually sends the request to the LPD server.
printCommand(PrintStream) - Method in class net.sf.lpr.daemon.subcommands.AbortJob
 
PrintType - Enum in net.sf.lpr.daemon
Enumeration that holds the single character code that is used to send to the LPD server to have it print the different types of files

R

ReceiveControlFile - Class in net.sf.lpr.daemon.subcommands
Class for formatting the portion of the message that is sent to the server during a single session that describes to the server what the data that will be sent to the server to be printed is.
ReceiveControlFile(PrintStream, InputStream, int, String, PrintType, String, String) - Constructor for class net.sf.lpr.daemon.subcommands.ReceiveControlFile
Constructs the portion of the message that is the control file to be sent to the LPD server.
ReceiveDataFile - Class in net.sf.lpr.daemon.subcommands
Class for formatting the message the data that will be sent to the LPD server.
ReceiveDataFile(PrintStream, InputStream, String, int, InputStream, long) - Constructor for class net.sf.lpr.daemon.subcommands.ReceiveDataFile
Construct the message to be sent to the LPD server that contains the data to be be print
ReceivePrinterJob - Class in net.sf.lpr.daemon.commands
Command the LPD server to be ready to receive a print job.
ReceivePrinterJob(PrintStream, InputStream, String) - Constructor for class net.sf.lpr.daemon.commands.ReceivePrinterJob
Construct the command that will put the LPD server into subcommand mode for the current session to receive a print job.

S

SendQueueStateLong - Class in net.sf.lpr.daemon.commands
Query the LPD server for it's state in long form.
SendQueueStateLong(PrintStream, InputStream, String, Writer) - Constructor for class net.sf.lpr.daemon.commands.SendQueueStateLong
Construct the request to the server that will request it's current state in long form
SendQueueStateShort - Class in net.sf.lpr.daemon.commands
Query the LPD server for it's state in short form.
SendQueueStateShort(PrintStream, InputStream, String, Writer) - Constructor for class net.sf.lpr.daemon.commands.SendQueueStateShort
Construct the request to the server that will request it's current state in short form

U

UnknownHostRuntimeException - Exception in net.sf.lpr.exception
Used in place of the checked UnknownHostException
UnknownHostRuntimeException() - Constructor for exception net.sf.lpr.exception.UnknownHostRuntimeException
 
UnknownHostRuntimeException(String) - Constructor for exception net.sf.lpr.exception.UnknownHostRuntimeException
 
UnknownHostRuntimeException(Throwable) - Constructor for exception net.sf.lpr.exception.UnknownHostRuntimeException
 
UnknownHostRuntimeException(String, Throwable) - Constructor for exception net.sf.lpr.exception.UnknownHostRuntimeException
 

V

valueOf(String) - Static method in enum net.sf.lpr.daemon.PrintType
Returns the enum constant of this type with the specified name.
values() - Static method in enum net.sf.lpr.daemon.PrintType
Returns an array containing the constants of this enum type, in the order they are declared.

Z

ZERO - Static variable in class net.sf.lpr.LPRUtils
 

A C D G I L N P R S U V Z