|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParallelPortInterface
User: lyon Date: Jul 30, 2006 Time: 7:47:21 AM Copyright DocJava, Inc. 2005.
Field Summary | |
---|---|
static int |
LPT_MODE_ANY
Uses the best available mode. |
static int |
LPT_MODE_ECP
Extended Capabilities Port mode. |
static int |
LPT_MODE_EPP
Extended Parallel Port mode. |
static int |
LPT_MODE_NIBBLE
Bidirectional 4-bits-at-a-time mode. |
static int |
LPT_MODE_PS2
Bidirectional byte-at-a-time mode. |
static int |
LPT_MODE_SPP
Unidrectional compatibility mode. |
Method Summary | |
---|---|
void |
addEventListener(ParallelPortEventListener listener)
Adds a listener for parallel port events. |
int |
getMode()
|
int |
getOutputBufferFree()
|
boolean |
isPaperOut()
|
boolean |
isPrinterBusy()
|
boolean |
isPrinterError()
|
boolean |
isPrinterSelected()
|
boolean |
isPrinterTimedOut()
|
void |
notifyOnBuffer(boolean notify)
Instructs the port to notify its listener in the case of the output buffer being empty. |
void |
notifyOnError(boolean notify)
Instructs the port to notify its listener in the case of port errors. |
void |
removeEventListener()
Removes the parallel port event listener. |
void |
restart()
Restart the printer after an error has occurred. |
int |
setMode(int mode)
|
void |
suspend()
Suspend output. |
Field Detail |
---|
static final int LPT_MODE_ANY
static final int LPT_MODE_SPP
static final int LPT_MODE_PS2
static final int LPT_MODE_EPP
static final int LPT_MODE_ECP
static final int LPT_MODE_NIBBLE
Method Detail |
---|
void addEventListener(ParallelPortEventListener listener) throws java.util.TooManyListenersException
listener
- the listener to add
java.util.TooManyListenersException
void removeEventListener()
void notifyOnError(boolean notify)
notify
- true to notify in case of error, false otherwisevoid notifyOnBuffer(boolean notify)
notify
- true to notify in case of empty buffer, false otherwiseint getOutputBufferFree()
boolean isPaperOut()
boolean isPrinterBusy()
boolean isPrinterSelected()
boolean isPrinterTimedOut()
boolean isPrinterError()
void restart()
void suspend()
int getMode()
int setMode(int mode) throws UnsupportedCommOperationException
mode
- one of LPT_MODE_ANY, LPT_MODE_SPP, LPT_MODE_PS2,
LPT_MODE_EPP, or LPT_MODE_ECP
UnsupportedCommOperationException
- if the mode is not
supported by the driver
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |