|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.numdata.printer.LPDClient
public class LPDClient
Client for the Line Printer Daemon Protocol.
| Field Summary | |
|---|---|
static int |
DEFAULT_PORT
The default LPD port number. |
| Constructor Summary | |
|---|---|
LPDClient(PrinterSettings printerSettings)
Constructs a new instance. |
|
LPDClient(String hostname,
int networkPort,
String queueName)
Constructs a new instance. |
|
| Method Summary | |
|---|---|
void |
print(String documentName,
byte[] documentData,
boolean printRaw)
Print a document to a LPD print server on a network host. |
void |
removeCurrentJob()
Removes the currently active job. |
String |
requestQueueState(boolean longFormat)
Requests information about the printer queue. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_PORT
| Constructor Detail |
|---|
public LPDClient(PrinterSettings printerSettings)
printerSettings - Printer settings to use.
public LPDClient(String hostname,
int networkPort,
String queueName)
hostname - Host name or IP address of server.networkPort - Port to use on host (0 or less to use default).queueName - Name of remote printer queue or port.| Method Detail |
|---|
public String requestQueueState(boolean longFormat)
throws PrinterException
longFormat - false for short format; true for long
format.
PrinterException - if an error occurs while accessing the printer.
public void removeCurrentJob()
throws PrinterException
PrinterException - if an error occurs while accessing the printer.
public void print(String documentName,
byte[] documentData,
boolean printRaw)
throws PrinterException
documentName - Name of document to display in queue.documentData - Document data to print.printRaw - Print raw vs. cooked data.
PrinterException - if there was a problem sending the document to
the printer.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||