|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.comm.CommPort
javax.comm.ParallelPort
public abstract class ParallelPort
| Field Summary | |
|---|---|
static int |
LPT_MODE_ANY
Define the lpt mode any (int) constant. |
static int |
LPT_MODE_ECP
Define the lpt mode ecp (int) constant. |
static int |
LPT_MODE_EPP
Define the lpt mode epp (int) constant. |
static int |
LPT_MODE_NIBBLE
Define the lpt mode nibble (int) constant. |
static int |
LPT_MODE_PS2
Define the lpt mode ps2 (int) constant. |
static int |
LPT_MODE_SPP
Define the lpt mode spp (int) constant. |
| Fields inherited from class javax.comm.CommPort |
|---|
name |
| Constructor Summary | |
|---|---|
ParallelPort()
Constructs an instance of this class. |
|
| Method Summary | |
|---|---|
abstract void |
addEventListener(ParallelPortEventListener lsnr)
Add event listener with the specified lsnr parameter. |
abstract int |
getMode()
Gets the mode (int) value. |
abstract int |
getOutputBufferFree()
Gets the output buffer free (int) value. |
abstract boolean |
isPaperOut()
Gets the paper out (boolean) value. |
abstract boolean |
isPrinterBusy()
Gets the printer busy (boolean) value. |
abstract boolean |
isPrinterError()
Gets the printer error (boolean) value. |
abstract boolean |
isPrinterSelected()
Gets the printer selected (boolean) value. |
abstract boolean |
isPrinterTimedOut()
Gets the printer timed out (boolean) value. |
abstract void |
notifyOnBuffer(boolean notify)
Notify on buffer with the specified notify parameter. |
abstract void |
notifyOnError(boolean notify)
Notify on error with the specified notify parameter. |
abstract void |
removeEventListener()
Remove event listener. |
abstract void |
restart()
Restart. |
abstract int |
setMode(int mode)
Sets the mode value. |
abstract void |
suspend()
Suspend. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int LPT_MODE_ANY
public static final int LPT_MODE_SPP
public static final int LPT_MODE_PS2
public static final int LPT_MODE_EPP
public static final int LPT_MODE_ECP
public static final int LPT_MODE_NIBBLE
| Constructor Detail |
|---|
public ParallelPort()
| Method Detail |
|---|
public abstract void addEventListener(ParallelPortEventListener lsnr)
throws java.util.TooManyListenersException
lsnr - The lsnr (ParallelPortEventListener) parameter.
java.util.TooManyListenersException - Too Many Listeners Exception.removeEventListener()public abstract int getMode()
int) value.setMode(int)public abstract int getOutputBufferFree()
int) value.public abstract boolean isPaperOut()
boolean) value.public abstract boolean isPrinterBusy()
boolean) value.public abstract boolean isPrinterError()
boolean) value.public abstract boolean isPrinterSelected()
boolean) value.public abstract boolean isPrinterTimedOut()
boolean) value.public abstract void notifyOnBuffer(boolean notify)
notify - The notify (boolean) parameter.public abstract void notifyOnError(boolean notify)
notify - The notify (boolean) parameter.public abstract void removeEventListener()
addEventListener(ParallelPortEventListener)public abstract void restart()
public abstract int setMode(int mode)
throws UnsupportedCommOperationException
mode - The mode (int) parameter.
int) value.
UnsupportedCommOperationException - Unsupported Comm Operation Exception.getMode()public abstract void suspend()
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||