A B C D E F G H I J K L M N O P Q R S T U V W

A

ACK - Static variable in class org.simoes.lpd.common.Constants
 
add(PrintJob) - Method in class org.simoes.lpd.util.PrintQueue
add print job to queue.
add(PrintJob) - Method in class org.simoes.lpd.util.PrintQueueWithTableModel
add print job to queue.
add(Object) - Method in class org.simoes.lpd.util.Queue
add method.
add(Runnable) - Method in class org.simoes.util.ThreadPool
Use this to add to the Thread Pool.
addNotify() - Method in class org.simoes.lpd.ui.PrintJobJFrame
 
addPrintJob(String, PrintJob) - Method in class org.simoes.lpd.util.Queues
Adds a printJob to the queue specified by queueName.

B

ByteUtil - class org.simoes.util.ByteUtil.
Utility class for manipulating bytes in Java that I have found useful.
ByteUtil() - Constructor for class org.simoes.util.ByteUtil
 

C

CommandHandler - class org.simoes.lpd.command.CommandHandler.
This class is the super class for any class that handles a lpd command.
CommandHandler(byte[], InputStream, OutputStream) - Constructor for class org.simoes.lpd.command.CommandHandler
 
CommandPrintJob - class org.simoes.lpd.command.CommandPrintJob.
This class handles the Print any waiting jobs Command in RFC1179.
CommandPrintJob(byte[], InputStream, OutputStream) - Constructor for class org.simoes.lpd.command.CommandPrintJob
 
CommandReceiveJob - class org.simoes.lpd.command.CommandReceiveJob.
This class handles the Receive a printer job Command in RFC1179.
CommandReceiveJob(byte[], InputStream, OutputStream) - Constructor for class org.simoes.lpd.command.CommandReceiveJob
Constructor for CommandReceiveJob.
CommandRemovePrintJob - class org.simoes.lpd.command.CommandRemovePrintJob.
This class handles the Remove jobs Command in RFC1179.
CommandRemovePrintJob(byte[], InputStream, OutputStream) - Constructor for class org.simoes.lpd.command.CommandRemovePrintJob
 
CommandReportQueueStateLong - class org.simoes.lpd.command.CommandReportQueueStateLong.
This class handles the Send queue state (long) Command in RFC1179.
CommandReportQueueStateLong(byte[], InputStream, OutputStream) - Constructor for class org.simoes.lpd.command.CommandReportQueueStateLong
 
CommandReportQueueStateShort - class org.simoes.lpd.command.CommandReportQueueStateShort.
This class handles the Send queue state (short) Command in RFC1179.
CommandReportQueueStateShort(byte[], InputStream, OutputStream) - Constructor for class org.simoes.lpd.command.CommandReportQueueStateShort
 
ConfigResources - class org.simoes.util.ConfigResources.
Provides user with access to the properties file.
ConfigResources() - Constructor for class org.simoes.util.ConfigResources
 
Constants - class org.simoes.lpd.common.Constants.
Holds all of our static Constants in our project.
Constants() - Constructor for class org.simoes.lpd.common.Constants
 
ControlFile - class org.simoes.lpd.common.ControlFile.
Represents the ControlFile sent with a print job when the command is 02 Receive Print Job.
ControlFile() - Constructor for class org.simoes.lpd.common.ControlFile
 
ControlFileCommands - class org.simoes.lpd.common.ControlFileCommands.
This encapsulates the control file and all of it's commands.
ControlFileCommands() - Constructor for class org.simoes.lpd.common.ControlFileCommands
Default constructor.
ControlFileCommands(String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String, String) - Constructor for class org.simoes.lpd.common.ControlFileCommands
Fully qualified constructor.
ControlFileCommands(byte[]) - Constructor for class org.simoes.lpd.common.ControlFileCommands
Constructor that is passed the raw byte array from the request.
checkDate(int, int, int) - Static method in class org.simoes.util.DateUtil
Returns a true or false based on the whether or not the date is valid.
checkYOrN(String) - Static method in class org.simoes.util.StringUtil
 
clone() - Method in class org.simoes.lpd.common.ControlFile
 
clone() - Method in class org.simoes.lpd.common.ControlFileCommands
 
clone() - Method in class org.simoes.lpd.common.DataFile
 
clone() - Method in class org.simoes.lpd.common.PrintJob
 
closePool() - Method in class org.simoes.util.ThreadPool
Closes the ThreadPool.
closeQueue() - Method in class org.simoes.lpd.util.PrintQueue
 
command - Variable in class org.simoes.lpd.command.CommandHandler
 
constructURL(String, Properties) - Static method in class org.simoes.util.StringUtil
Creates a URL from the passed in parameters.
containsAnyStrings(String, ArrayList) - Static method in class org.simoes.util.StringUtil
Returns true if the String data contains any of the Strings contained in the ArrayList.
containsOnlyString(String, ArrayList, boolean) - Static method in class org.simoes.util.StringUtil
Returns true if the String data exactly matches one of the strings in contained in the ArrayList matches.
copyByteArray(byte[]) - Static method in class org.simoes.util.ByteUtil
 
counter - Static variable in class org.simoes.lpd.util.Queue
 
createCalendar(Date) - Static method in class org.simoes.util.DateUtil
 
createDateOnlyFilename(Date) - Static method in class org.simoes.util.DateUtil
Creates a String that represents the Date passed in.
createDateOnlyString(Date) - Static method in class org.simoes.util.DateUtil
Creates a String that represents the Date passed in, using the format passed in.
createDateString() - Static method in class org.simoes.util.DateUtil
Creates a String that represents the current Date and Time.
createDateString(Date) - Static method in class org.simoes.util.DateUtil
Creates a String that represents the Date passed in.
createDateString(String) - Static method in class org.simoes.util.DateUtil
Creates a String formatted properly based on the Date passed in.
createFixedLengthString(String, int) - Static method in class org.simoes.util.StringUtil
Constructs a String of the fixed length given.
createQueue(String) - Method in class org.simoes.lpd.util.Queues
Creates a Print Queue with the name passed in
createQueueWithTableModel(String, PrintJobTableModel) - Method in class org.simoes.lpd.util.Queues
Creates a Print Queue with the name passed in and creates a TableModel for the GUI.

D

DataFile - class org.simoes.lpd.common.DataFile.
The dataFile encapsulates the actual print job data that we will send to the printer.
DataFile() - Constructor for class org.simoes.lpd.common.DataFile
 
DateUtil - class org.simoes.util.DateUtil.
Utility class for manipulating Dates in Java that I have found useful.
DateUtil() - Constructor for class org.simoes.util.DateUtil
 
deleteFile(String) - Static method in class org.simoes.util.FileUtil
Deletes the file passed in.
deleteFile(File) - Static method in class org.simoes.util.FileUtil
Deletes the file passed in.
deleteFiles(String[]) - Static method in class org.simoes.util.FileUtil
Deletes the files passed in the String array.

E

equals(Object) - Method in class org.simoes.lpd.util.QueuedObject
 
execute() - Method in class org.simoes.lpd.command.CommandHandler
Processes the command in the concrete subclass.
execute() - Method in class org.simoes.lpd.command.CommandPrintJob
Currently does nothing.
execute() - Method in class org.simoes.lpd.command.CommandReceiveJob
Receives the print job and adds it to the queue.
execute() - Method in class org.simoes.lpd.command.CommandRemovePrintJob
Removes the print jobs specified by the parameters passed in.
execute() - Method in class org.simoes.lpd.command.CommandReportQueueStateLong
Writes a text table that displays the current print jobs.
execute() - Method in class org.simoes.lpd.command.CommandReportQueueStateShort
Writes a breif text table that displays the current print jobs.

F

FILE_NAME - Static variable in class org.simoes.util.ConfigResources
 
FileHandler - class org.simoes.lpd.handler.FileHandler.
Handles PrintJobs by writing them to File.
FileHandler() - Constructor for class org.simoes.lpd.handler.FileHandler
 
FileUtil - class org.simoes.util.FileUtil.
Utility class for manipulating Files in Java that I have found useful.
FileUtil() - Constructor for class org.simoes.util.FileUtil
 

G

getClassForBannerPage() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getColumnCount() - Method in class org.simoes.lpd.ui.PrintJobTableModel
 
getColumnName(int) - Method in class org.simoes.lpd.ui.PrintJobTableModel
 
getContents() - Method in class org.simoes.lpd.common.PrintFile
 
getControlFile() - Method in class org.simoes.lpd.common.PrintJob
 
getControlFileCommands() - Method in class org.simoes.lpd.common.ControlFile
 
getCount() - Method in class org.simoes.lpd.common.PrintFile
 
getDataFile() - Method in class org.simoes.lpd.common.PrintJob
 
getEmail() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getFileName() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getFileToPlot() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getFileToPrintAsDitroff() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getFileToPrintAsPostscript() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getFileToPrintAsPr() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getFileToPrintAsRaster() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getFileToPrintAsText() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getFileToPrintAsTextRaw() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getFileToPrintAsTroff() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getFileToPrintFortran() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getFileToUnlink() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getHost() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getHostName() - Method in class org.simoes.lpd.common.PrintFile
 
getId() - Method in class org.simoes.lpd.util.QueuedObject
 
getId() - Method in class org.simoes.lpd.util.QueuedPrintJobInfo
 
getIndentCount() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getInstance() - Static method in class org.simoes.lpd.LPD
This class is a singleton.
getInstance() - Static method in class org.simoes.lpd.handler.HandlerFactory
This class is a singleton.
getInstance() - Static method in class org.simoes.lpd.util.Queues
This class is a singleton.
getJobId() - Method in class org.simoes.lpd.util.QueuedPrintJob
 
getJobName() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getJobNumber() - Method in class org.simoes.lpd.common.PrintFile
 
getLines(String) - Static method in class org.simoes.util.StringUtil
Creates a Vector of lines parsed on newline characters.
getLock() - Method in class org.simoes.lpd.util.PrintQueue
 
getLongDescription() - Method in class org.simoes.lpd.util.QueuedPrintJobInfo
 
getName() - Method in class org.simoes.lpd.common.PrintJob
 
getName() - Method in class org.simoes.lpd.util.Queue
getName.
getName() - Method in class org.simoes.lpd.util.QueuedPrintJobInfo
 
getNext() - Method in class org.simoes.lpd.util.Queue
Gets the last Object in the Queue without removing it.
getNextPrintJob() - Method in class org.simoes.lpd.util.PrintQueue
Gets the next PrintJob without removing it.
getNextPrintJob(String) - Method in class org.simoes.lpd.util.Queues
 
getObject() - Method in class org.simoes.lpd.util.QueuedObject
 
getOwner() - Method in class org.simoes.lpd.common.PrintJob
 
getOwner() - Method in class org.simoes.lpd.util.QueuedPrintJobInfo
 
getPlotCIFFileName() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getPrintDVIFileName() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getPrintHandler() - Method in class org.simoes.lpd.handler.HandlerFactory
Returns the concrete implementation of the HandlerInterface based on the settings in the properties file.
getPrintJob() - Method in class org.simoes.lpd.util.QueuedPrintJob
 
getProperty(String) - Static method in class org.simoes.util.ConfigResources
 
getQueueLock(String) - Method in class org.simoes.lpd.util.Queues
 
getQueueName() - Method in class org.simoes.lpd.handler.QueueMonitor
 
getQueueSize(String) - Method in class org.simoes.lpd.util.Queues
 
getQueueSize() - Method in class org.simoes.util.ThreadPool
Returns the number of objects waiting for a thread.
getRowCount() - Method in class org.simoes.lpd.ui.PrintJobTableModel
 
getShortDescription() - Method in class org.simoes.lpd.util.QueuedPrintJobInfo
 
getSize() - Method in class org.simoes.lpd.common.PrintJob
 
getSize() - Method in class org.simoes.lpd.util.QueuedPrintJobInfo
 
getSymbolicLinkData() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getTimeStamp() - Method in class org.simoes.lpd.util.QueuedObject
 
getTimeStamp() - Method in class org.simoes.lpd.util.QueuedPrintJobInfo
 
getTitle() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getTroffBFontName() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getTroffIFontName() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getTroffRFontFileName() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getTroffSFontName() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getUserId() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getUserName() - Method in class org.simoes.lpd.common.ControlFileCommands
 
getValueAt(int, int) - Method in class org.simoes.lpd.ui.PrintJobTableModel
 
getWidthCount() - Method in class org.simoes.lpd.common.ControlFileCommands
 

H

HandlerFactory - class org.simoes.lpd.handler.HandlerFactory.
Creates the concrete implementation of the Handler we will use to process PrintJobs based on the properties file.
HandlerInterface - interface org.simoes.lpd.handler.HandlerInterface.
Defines the interface for any class looking to process printJobs that are in the PrintQueue.
handleCommand(byte[], InputStream, OutputStream) - Method in class org.simoes.lpd.command.LPDCommands
Creates the concrete instance of the command class required.

I

INVALID_ID - Static variable in class org.simoes.lpd.util.Queue
 
id - Variable in class org.simoes.lpd.util.QueuedObject
 
inputStream2ByteArray(InputStream) - Static method in class org.simoes.util.FileUtil
Reads the InputStream into the ByteArrayOutputStream.
inputStream2String(InputStream) - Static method in class org.simoes.util.FileUtil
Converts the InputStream to the returned String.
is - Variable in class org.simoes.lpd.command.CommandHandler
 
isEmpty(String) - Static method in class org.simoes.util.StringUtil
 

J

JOB_DATE_LENGTH - Static variable in class org.simoes.lpd.common.Constants
 
JOB_ID_LENGTH - Static variable in class org.simoes.lpd.common.Constants
 
JOB_NAME_LENGTH - Static variable in class org.simoes.lpd.common.Constants
 
JOB_OWNER_LENGTH - Static variable in class org.simoes.lpd.common.Constants
 
JOB_SIZE_LENGTH - Static variable in class org.simoes.lpd.common.Constants
 

K

KEY_PRINT_JOB_HANDLER - Static variable in class org.simoes.lpd.common.Constants
 

L

LPD - class org.simoes.lpd.LPD.
The Line Printer Daemon (LPD).
LPDCommands - class org.simoes.lpd.command.LPDCommands.
Creates the concrete command classes to process incoming commands.
LPDCommands() - Constructor for class org.simoes.lpd.command.LPDCommands
 
LPDException - exception org.simoes.lpd.exception.LPDException.
The general exception for our LPD project.
LPDException() - Constructor for class org.simoes.lpd.exception.LPDException
 
LPDException(String) - Constructor for class org.simoes.lpd.exception.LPDException
 
LPDException(String, Throwable) - Constructor for class org.simoes.lpd.exception.LPDException
 
LPDException(Throwable) - Constructor for class org.simoes.lpd.exception.LPDException
 
Lock - class org.simoes.lpd.common.Lock.
 
Lock(String) - Constructor for class org.simoes.lpd.common.Lock
 
list() - Method in class org.simoes.lpd.util.PrintQueue
list items in queue.
list() - Method in class org.simoes.lpd.util.Queue
list of the items in the queue (a copy of each one).
listAllPrintJobs(String) - Method in class org.simoes.lpd.util.Queues
Returns a List of all print jobs in the Queue.
lock - Variable in class org.simoes.lpd.util.PrintQueue
 

M

MENU_ABOUT - Static variable in class org.simoes.lpd.common.Constants
 
MENU_EDIT - Static variable in class org.simoes.lpd.common.Constants
 
MENU_ITEM_ABOUT - Static variable in class org.simoes.lpd.common.Constants
 
MENU_ITEM_DELETE_ALL - Static variable in class org.simoes.lpd.common.Constants
 
Main - class org.simoes.lpd.Main.
Used to run our example code.
Main() - Constructor for class org.simoes.lpd.Main
 
main(String[]) - Static method in class org.simoes.lpd.LPD
 
main(String[]) - Static method in class org.simoes.lpd.Main
 
main(String[]) - Static method in class org.simoes.lpd.common.ControlFileCommands
unit test method.
main(String[]) - Static method in class org.simoes.lpd.ui.PrintJobJFrame
 
main(String[]) - Static method in class org.simoes.lpd.util.Queue
 
main(String[]) - Static method in class org.simoes.lpd.util.QueuedObject
 
main(String[]) - Static method in class org.simoes.util.StringUtil
 
map2String(Map) - Static method in class org.simoes.util.StringUtil
Converts the Map passed in to a string containing "key=value" pairs separated by \n characters.

N

NetUtil - class org.simoes.lpd.util.NetUtil.
Provides utility methods helping us to parse the byte streams sent to us from the client.
NetUtil() - Constructor for class org.simoes.lpd.util.NetUtil
Default Contructor.
name - Variable in class org.simoes.lpd.util.Queue
 
null2Empty(String) - Static method in class org.simoes.util.StringUtil
Returns an empty string "" if str is null.

O

ObjectNotFoundException - exception org.simoes.lpd.exception.ObjectNotFoundException.
When an expected object is not found this is thrown.
ObjectNotFoundException(String) - Constructor for class org.simoes.lpd.exception.ObjectNotFoundException
 
object - Variable in class org.simoes.lpd.util.QueuedObject
 
org.simoes.lpd - package org.simoes.lpd
 
org.simoes.lpd.command - package org.simoes.lpd.command
Provides classes that process lpr commands.
org.simoes.lpd.common - package org.simoes.lpd.common
 
org.simoes.lpd.exception - package org.simoes.lpd.exception
 
org.simoes.lpd.handler - package org.simoes.lpd.handler
 
org.simoes.lpd.test - package org.simoes.lpd.test
 
org.simoes.lpd.ui - package org.simoes.lpd.ui
 
org.simoes.lpd.util - package org.simoes.lpd.util
 
org.simoes.util - package org.simoes.util
 
os - Variable in class org.simoes.lpd.command.CommandHandler
 

P

PrintFile - class org.simoes.lpd.common.PrintFile.
The abstract super-class that represents the 2 files sent to us from the CommandReceiveJob.
PrintFile() - Constructor for class org.simoes.lpd.common.PrintFile
 
PrintJob - class org.simoes.lpd.common.PrintJob.
Represents any print jobs sent to us.
PrintJob(ControlFile, DataFile) - Constructor for class org.simoes.lpd.common.PrintJob
Constructor requires a ControlFile and a DataFile.
PrintJobJFrame - class org.simoes.lpd.ui.PrintJobJFrame.
The GUI window that shows all print jobs that have been sent to the default queue.
PrintJobJFrame(TableModel) - Constructor for class org.simoes.lpd.ui.PrintJobJFrame
Constructor requiring the TableModel the View will show.
PrintJobJFrame(String, TableModel) - Constructor for class org.simoes.lpd.ui.PrintJobJFrame
Constructor requiring the TableModel the View will show and the title of the GUI.
PrintJobTableModel - class org.simoes.lpd.ui.PrintJobTableModel.
Represents the data our UI will show.
PrintJobTableModel() - Constructor for class org.simoes.lpd.ui.PrintJobTableModel
Default Construtor.
PrintQueue - class org.simoes.lpd.util.PrintQueue.
The PrintQueue is just a queue that only accepts print jobs still need to figure out how the events get sent
PrintQueue(String) - Constructor for class org.simoes.lpd.util.PrintQueue
constructor.
PrintQueueWithTableModel - class org.simoes.lpd.util.PrintQueueWithTableModel.
The PrintQueue is just a queue that only accepts print jobs still need to figure out how the events get sent
PrintQueueWithTableModel(String, PrintJobTableModel) - Constructor for class org.simoes.lpd.util.PrintQueueWithTableModel
constructor.
PrintUtil - class org.simoes.lpd.util.PrintUtil.
This is a utility class to help us print labels.
PrintUtil() - Constructor for class org.simoes.lpd.util.PrintUtil
 
PrinterHandler - class org.simoes.lpd.handler.PrinterHandler.
Handles PrintJobs by writing them to the default Printer.
PrinterHandler() - Constructor for class org.simoes.lpd.handler.PrinterHandler
 
parseCommand(byte[]) - Static method in class org.simoes.util.StringUtil
Creates a Vector of byte[] from the command passed in.
parsePrintFileName(String) - Static method in class org.simoes.util.StringUtil
This parses the "name" field passed in the header of the control file or the data files.
process(PrintJob) - Method in class org.simoes.lpd.handler.FileHandler
Writes the printJob to disk using the jobName and jobId.
process(PrintJob) - Method in interface org.simoes.lpd.handler.HandlerInterface
Processes the PrintJob in some manner.
process(PrintJob) - Method in class org.simoes.lpd.handler.PrinterHandler
Writes the printJob to the default Printer.
processCommand(String) - Method in class org.simoes.lpd.common.ControlFileCommands
Processes a command (one line of input).

Q

Queue - class org.simoes.lpd.util.Queue.
Queue is just a queue
Queue(String) - Constructor for class org.simoes.lpd.util.Queue
constructor.
QueueException - exception org.simoes.lpd.exception.QueueException.
Shows when an exceptional condition has occurred in one of our Queues.
QueueException() - Constructor for class org.simoes.lpd.exception.QueueException
 
QueueException(String) - Constructor for class org.simoes.lpd.exception.QueueException
 
QueueException(String, Throwable) - Constructor for class org.simoes.lpd.exception.QueueException
 
QueueException(Throwable) - Constructor for class org.simoes.lpd.exception.QueueException
 
QueueMonitor - class org.simoes.lpd.handler.QueueMonitor.
Watches the PrintQueue and removes jobs as they appear there.
QueueMonitor(String) - Constructor for class org.simoes.lpd.handler.QueueMonitor
Create a QueueMonitor.
QueuedObject - class org.simoes.lpd.util.QueuedObject.
Encapsulates any Object that is stored in a Queue
QueuedObject(long, Date, Object) - Constructor for class org.simoes.lpd.util.QueuedObject
constructor.
QueuedPrintJob - class org.simoes.lpd.util.QueuedPrintJob.
A copy of a printJob plus the jobId used by the PrintQueue to store the opriginal copy of this PrintJob.
QueuedPrintJob(long, PrintJob) - Constructor for class org.simoes.lpd.util.QueuedPrintJob
Constructor for the QueuedPrintJob.
QueuedPrintJobInfo - class org.simoes.lpd.util.QueuedPrintJobInfo.
Encapsulates the PrintJob that is stored in the Queue.
QueuedPrintJobInfo(QueuedObject) - Constructor for class org.simoes.lpd.util.QueuedPrintJobInfo
constructor.
Queues - class org.simoes.lpd.util.Queues.
This class maintains all of the Print queues and contains all of the logic for performing operations on them.
queue - Variable in class org.simoes.lpd.util.PrintQueue
 
queue - Variable in class org.simoes.lpd.util.Queue
 

R

readCommand(InputStream) - Method in class org.simoes.lpd.util.NetUtil
Reads a command defined by the RFC1179 spec.
readControlFile(InputStream, OutputStream) - Method in class org.simoes.lpd.util.NetUtil
Reads the ControlFile and retunrs it as a byte[]
readInputStream(InputStream, ByteArrayOutputStream) - Static method in class org.simoes.util.FileUtil
Reads the InputStream into the ByteArrayOutputStream.
readNextInput(InputStream, OutputStream) - Method in class org.simoes.lpd.util.NetUtil
Used by CommandReceiveJob to read the headers of the ControlFile or the DataFile from the client.
readPrintFile(InputStream, OutputStream) - Method in class org.simoes.lpd.util.NetUtil
Reads the DataFile and returns it as a byte[]
readPrintFile(InputStream, OutputStream, int) - Method in class org.simoes.lpd.util.NetUtil
Reads the DataFile and returns it as a byte[]
remove(long) - Method in class org.simoes.lpd.util.PrintQueue
remove print job from queue.
remove(long) - Method in class org.simoes.lpd.util.PrintQueueWithTableModel
remove print job from queue.
remove(long) - Method in class org.simoes.lpd.util.Queue
remove by unique identifier.
removeAll() - Method in class org.simoes.lpd.util.PrintQueue
remove all print jobs from queue.
removeAll() - Method in class org.simoes.lpd.util.PrintQueueWithTableModel
remove all print jobs from queue.
removeAllPrintJobs(String) - Method in class org.simoes.lpd.util.Queues
Deletes all printJobs for this queue.
removeAllRows() - Method in class org.simoes.lpd.ui.PrintJobTableModel
Removes all printJobs in our model.
removePrintJob(String, String, String) - Method in class org.simoes.lpd.util.Queues
Removes a printJob based on queueName and the jobNumber.
replaceString(String, String, String) - Static method in class org.simoes.util.StringUtil
Replaces the "replace" String with the "replaceWith" String in the "line" String.
run() - Method in class org.simoes.lpd.LPD
The run method is implemented so this can be run in its own Thread if desired.
run() - Method in class org.simoes.lpd.handler.QueueMonitor
Watches the PrintQueue and process PrintJobs as they become available.
run() - Method in class org.simoes.lpd.ui.PrintJobJFrame
 
run() - Method in class org.simoes.util.ThreadPoolThread
 
runProgram(String, ByteArrayOutputStream) - Static method in class org.simoes.util.FileUtil
Runs the program passed in.

S

StringUtil - class org.simoes.util.StringUtil.
Utility class for manipulating Strings in Java that I have found useful.
StringUtil() - Constructor for class org.simoes.util.StringUtil
 
setAttribute(String, String) - Method in class org.simoes.lpd.common.ControlFileCommands
Switches on the command code and sets the appropriate attribute.
setClassForBannerPage(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setContents(byte[]) - Method in class org.simoes.lpd.common.PrintFile
 
setControlFileCommands(byte[]) - Method in class org.simoes.lpd.common.ControlFile
 
setCount(String) - Method in class org.simoes.lpd.common.PrintFile
 
setEmail(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setEventsStillFiring(boolean) - Method in class org.simoes.util.ThreadPoolThread
 
setFileName(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setFileToPlot(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setFileToPrintAsDitroff(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setFileToPrintAsPostscript(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setFileToPrintAsPr(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setFileToPrintAsRaster(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setFileToPrintAsText(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setFileToPrintAsTextRaw(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setFileToPrintAsTroff(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setFileToPrintFortran(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setFileToUnlink(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setHost(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setHostName(String) - Method in class org.simoes.lpd.common.PrintFile
 
setIndentCount(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setJobName(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setJobNumber(String) - Method in class org.simoes.lpd.common.PrintFile
 
setPlotCIFFileName(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setPrintDVIFileName(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setPrintQueueDataModel(PrintQueue) - Method in class org.simoes.lpd.ui.PrintJobTableModel
This method must be called prior to using this DataModel.
setSymbolicLinkData(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setTitle(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setTroffBFontName(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setTroffIFontName(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setTroffRFontFileName(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setTroffSFontName(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setUp() - Method in class org.simoes.lpd.test.TestPrintFile
 
setUp() - Method in class org.simoes.lpd.test.TestQueue
 
setUp() - Method in class org.simoes.lpd.test.TestUtil
 
setUserId(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setUserName(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
setVisible(boolean) - Method in class org.simoes.lpd.ui.PrintJobJFrame
 
setWidthCount(String) - Method in class org.simoes.lpd.common.ControlFileCommands
 
singleLine(QueuedPrintJobInfo) - Static method in class org.simoes.lpd.util.QueuedPrintJobInfo
 
size() - Method in class org.simoes.lpd.util.PrintQueue
size of the print queue.
size() - Method in class org.simoes.lpd.util.Queue
size of the queue.
stop() - Method in class org.simoes.lpd.handler.QueueMonitor
 
suite() - Static method in class org.simoes.lpd.test.TestLPD
 

T

TestLPD - class org.simoes.lpd.test.TestLPD.
 
TestLPD() - Constructor for class org.simoes.lpd.test.TestLPD
 
TestPrintFile - class org.simoes.lpd.test.TestPrintFile.
 
TestPrintFile(String) - Constructor for class org.simoes.lpd.test.TestPrintFile
 
TestQueue - class org.simoes.lpd.test.TestQueue.
 
TestQueue(String) - Constructor for class org.simoes.lpd.test.TestQueue
 
TestUtil - class org.simoes.lpd.test.TestUtil.
 
TestUtil(String) - Constructor for class org.simoes.lpd.test.TestUtil
 
ThreadPool - class org.simoes.util.ThreadPool.
The Thread Pool will execute any threads passed in in a FIFO order.
ThreadPool(int) - Constructor for class org.simoes.util.ThreadPool
 
ThreadPoolRequest - class org.simoes.util.ThreadPoolRequest.
This is the wrapper object for any Objects passed into our ThreadPool.
ThreadPoolThread - class org.simoes.util.ThreadPoolThread.
The ThreadPool will process all requests thrown into the queue.
testCreateFixedLengthString() - Method in class org.simoes.lpd.test.TestUtil
 
testDataFileClone() - Method in class org.simoes.lpd.test.TestPrintFile
 
testParseCommand() - Method in class org.simoes.lpd.test.TestUtil
 
testQueue0() - Method in class org.simoes.lpd.test.TestQueue
 
testReadNextInput() - Method in class org.simoes.lpd.test.TestUtil
 
timeStamp - Variable in class org.simoes.lpd.util.QueuedObject
 
toControlFileFormat() - Method in class org.simoes.lpd.common.ControlFileCommands
Outputs current attributes in RFC1179 control file format (byte array).
toString() - Method in class org.simoes.lpd.common.ControlFileCommands
 
toString() - Method in class org.simoes.lpd.common.PrintJob
 
toString() - Method in class org.simoes.lpd.util.QueuedObject
 
toString() - Method in class org.simoes.lpd.util.QueuedPrintJobInfo
 

U

USER_ADMINISTRATOR - Static variable in class org.simoes.lpd.common.Constants
 
USER_ROOT - Static variable in class org.simoes.lpd.common.Constants
 
utilDate2SQLDate(Date) - Static method in class org.simoes.util.DateUtil
 
utilDate2Timestamp(Date) - Static method in class org.simoes.util.DateUtil
 

V

VALUE_DATABASE - Static variable in class org.simoes.lpd.common.Constants
 
VALUE_FILE - Static variable in class org.simoes.lpd.common.Constants
 
VALUE_NETWORK - Static variable in class org.simoes.lpd.common.Constants
 
VALUE_PRINTER - Static variable in class org.simoes.lpd.common.Constants
 

W

writeFile(InputStream, String) - Static method in class org.simoes.util.FileUtil
Writes the entire contents of the InputStream to a file named the filename passed in.
writeFile(String, String) - Static method in class org.simoes.util.FileUtil
Writes the String data to a file named filename.
writeFile(byte[], String) - Static method in class org.simoes.util.FileUtil
Writes the byte[] data to a file named filename.

A B C D E F G H I J K L M N O P Q R S T U V W