|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.lpr.daemon.commands.spi.AbstractDaemonCommand
public abstract class AbstractDaemonCommand
Basic boiler plate code for LPD commands to the server.
| Constructor Summary | |
|---|---|
protected |
AbstractDaemonCommand(java.io.PrintStream print,
java.io.InputStream in)
Constructs the basic object for sending a single daemon command to the LPD server |
| Method Summary | |
|---|---|
void |
print()
A call to this method will write the request to the constructor provided print parameter and read the response from the provided in parameter. |
protected abstract void |
printCommand(java.io.PrintStream print)
This method needs to be implemented for the daemon command that actually sends the request to the LPD server. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractDaemonCommand(java.io.PrintStream print,
java.io.InputStream in)
print - in - | Method Detail |
|---|
protected abstract void printCommand(java.io.PrintStream print)
throws java.io.IOException
print -
java.io.IOException
public final void print()
throws IORuntimeException
print in interface DaemonCommandIORuntimeException - if an IO error occurs of the LPD server does not send back the expected two bytes of 0.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||