|
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
org.eclipse.soda.dk.comm.NSParallelPort
public class NSParallelPort
| Field Summary | |
|---|---|
(package private) int |
fd
|
(package private) java.io.FileDescriptor |
FD
|
(package private) int |
insBufferCount
|
(package private) int |
insBufferSize
Disable read buffering for now |
static int |
LPT_MODE_ANY
|
static int |
LPT_MODE_ECP
|
static int |
LPT_MODE_EPP
|
static int |
LPT_MODE_NIBBLE
|
static int |
LPT_MODE_PS2
|
static int |
LPT_MODE_SPP
|
(package private) boolean |
notifyOnBufferFlag
|
(package private) int |
outsBufferCount
|
(package private) int |
outsBufferSize
Disable write buffering for default |
(package private) boolean |
outsSuspended
|
(package private) boolean |
rcvFraming
|
(package private) int |
rcvFramingByte
|
(package private) boolean |
rcvFramingByteReceived
|
(package private) int |
rcvThreshold
|
(package private) int |
rcvTimeout
|
| Fields inherited from class javax.comm.CommPort |
|---|
name |
| Constructor Summary | |
|---|---|
NSParallelPort(java.lang.String portName,
NSCommDriver driver)
|
|
| Method Summary | |
|---|---|
void |
addEventListener(ParallelPortEventListener lst)
Add event listener with the specified lsnr parameter. |
void |
close()
Close. |
void |
disableReceiveFraming()
Disable receive framing. |
void |
disableReceiveThreshold()
Disable receive threshold. |
void |
disableReceiveTimeout()
Disable receive timeout. |
void |
enableReceiveFraming(int rcvFramingByte)
Enable receive framing with the specified framing byte parameter. |
void |
enableReceiveThreshold(int thresh)
Enable receive threshold with the specified thresh parameter. |
void |
enableReceiveTimeout(int rt)
Enable receive timeout with the specified rcv timeout parameter. |
protected void |
finalize()
|
int |
getInputBufferSize()
Gets the input buffer size (int) value. |
java.io.InputStream |
getInputStream()
Gets the input stream value. |
int |
getMode()
Gets the mode (int) value. |
int |
getOutputBufferFree()
Gets the output buffer free (int) value. |
int |
getOutputBufferSize()
Gets the output buffer size (int) value. |
java.io.OutputStream |
getOutputStream()
Gets the output stream value. |
int |
getReceiveFramingByte()
Gets the receive framing byte (int) value. |
int |
getReceiveThreshold()
Gets the receive threshold (int) value. |
int |
getReceiveTimeout()
Gets the receive timeout (int) value. |
boolean |
isPaperOut()
Gets the paper out (boolean) value. |
boolean |
isPrinterBusy()
Gets the printer busy (boolean) value. |
boolean |
isPrinterError()
Gets the printer error (boolean) value. |
boolean |
isPrinterSelected()
Gets the printer selected (boolean) value. |
boolean |
isPrinterTimedOut()
Gets the printer timed out (boolean) value. |
boolean |
isReceiveFramingEnabled()
Gets the receive framing enabled (boolean) value. |
boolean |
isReceiveThresholdEnabled()
Gets the receive threshold enabled (boolean) value. |
boolean |
isReceiveTimeoutEnabled()
Gets the receive timeout enabled (boolean) value. |
void |
notifyOnBuffer(boolean notify)
Notify on buffer with the specified notify parameter. |
void |
notifyOnError(boolean notify)
Notify on error with the specified notify parameter. |
void |
removeEventListener()
Remove event listener. |
(package private) void |
reportParallelEvent(int eventType,
boolean oldvalue,
boolean newvalue)
|
void |
restart()
Restart. |
void |
setInputBufferSize(int size)
Sets the input buffer size value. |
int |
setMode(int md)
Sets the mode value. |
void |
setOutputBufferSize(int size)
Sets the output buffer size value. |
void |
suspend()
Suspend. |
| Methods inherited from class javax.comm.CommPort |
|---|
getName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, 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
int fd
java.io.FileDescriptor FD
int rcvThreshold
int rcvTimeout
boolean rcvFraming
int rcvFramingByte
boolean rcvFramingByteReceived
int insBufferSize
int insBufferCount
boolean outsSuspended
int outsBufferSize
int outsBufferCount
boolean notifyOnBufferFlag
| Constructor Detail |
|---|
NSParallelPort(java.lang.String portName,
NSCommDriver driver)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public java.io.InputStream getInputStream()
throws java.io.IOException
CommPort
getInputStream in class CommPortInputStream) value.
java.io.IOException
public java.io.OutputStream getOutputStream()
throws java.io.IOException
CommPort
getOutputStream in class CommPortOutputStream) value.
java.io.IOExceptionpublic void close()
CommPort
close in class CommPort
protected void finalize()
throws java.io.IOException
finalize in class java.lang.Objectjava.io.IOException
public void enableReceiveThreshold(int thresh)
throws UnsupportedCommOperationException
CommPort
enableReceiveThreshold in class CommPortthresh - The thresh (int) parameter.
UnsupportedCommOperationException - Unsupported Comm Operation Exception.CommPort.disableReceiveThreshold(),
CommPort.getReceiveThreshold()public void disableReceiveThreshold()
CommPort
disableReceiveThreshold in class CommPortCommPort.enableReceiveThreshold(int),
CommPort.getReceiveThreshold()public boolean isReceiveThresholdEnabled()
CommPort
isReceiveThresholdEnabled in class CommPortboolean) value.public int getReceiveThreshold()
CommPort
getReceiveThreshold in class CommPortint) value.CommPort.disableReceiveThreshold(),
CommPort.enableReceiveThreshold(int)
public void enableReceiveTimeout(int rt)
throws UnsupportedCommOperationException
CommPort
enableReceiveTimeout in class CommPortrt - The rcv timeout (int) parameter.
UnsupportedCommOperationException - Unsupported Comm Operation Exception.CommPort.disableReceiveTimeout(),
CommPort.getReceiveTimeout()public void disableReceiveTimeout()
CommPort
disableReceiveTimeout in class CommPortCommPort.enableReceiveTimeout(int),
CommPort.getReceiveTimeout()public boolean isReceiveTimeoutEnabled()
CommPort
isReceiveTimeoutEnabled in class CommPortboolean) value.public int getReceiveTimeout()
CommPort
getReceiveTimeout in class CommPortint) value.CommPort.disableReceiveTimeout(),
CommPort.enableReceiveTimeout(int)
public void enableReceiveFraming(int rcvFramingByte)
throws UnsupportedCommOperationException
CommPort
enableReceiveFraming in class CommPortrcvFramingByte - The framing byte (int) parameter.
UnsupportedCommOperationException - Unsupported Comm Operation Exception.CommPort.disableReceiveFraming()public void disableReceiveFraming()
CommPort
disableReceiveFraming in class CommPortCommPort.enableReceiveFraming(int)public boolean isReceiveFramingEnabled()
CommPort
isReceiveFramingEnabled in class CommPortboolean) value.public int getReceiveFramingByte()
CommPort
getReceiveFramingByte in class CommPortint) value.public void setInputBufferSize(int size)
CommPort
setInputBufferSize in class CommPortsize - The size (int) parameter.CommPort.getInputBufferSize()public int getInputBufferSize()
CommPort
getInputBufferSize in class CommPortint) value.CommPort.setInputBufferSize(int)public void setOutputBufferSize(int size)
CommPort
setOutputBufferSize in class CommPortsize - The size (int) parameter.CommPort.getOutputBufferSize()public int getOutputBufferSize()
CommPort
getOutputBufferSize in class CommPortint) value.CommPort.setOutputBufferSize(int)
public void addEventListener(ParallelPortEventListener lst)
throws java.util.TooManyListenersException
ParallelPort
addEventListener in class ParallelPortlst - The lsnr (ParallelPortEventListener) parameter.
java.util.TooManyListenersException - Too Many Listeners Exception.ParallelPort.removeEventListener()public void removeEventListener()
ParallelPort
removeEventListener in class ParallelPortParallelPort.addEventListener(ParallelPortEventListener)public void notifyOnError(boolean notify)
ParallelPort
notifyOnError in class ParallelPortnotify - The notify (boolean) parameter.public void notifyOnBuffer(boolean notify)
ParallelPort
notifyOnBuffer in class ParallelPortnotify - The notify (boolean) parameter.public int getOutputBufferFree()
ParallelPort
getOutputBufferFree in class ParallelPortint) value.public boolean isPaperOut()
ParallelPort
isPaperOut in class ParallelPortboolean) value.public boolean isPrinterBusy()
ParallelPort
isPrinterBusy in class ParallelPortboolean) value.public boolean isPrinterSelected()
ParallelPort
isPrinterSelected in class ParallelPortboolean) value.public boolean isPrinterTimedOut()
ParallelPort
isPrinterTimedOut in class ParallelPortboolean) value.public boolean isPrinterError()
ParallelPort
isPrinterError in class ParallelPortboolean) value.public void restart()
ParallelPort
restart in class ParallelPortpublic void suspend()
ParallelPort
suspend in class ParallelPortpublic int getMode()
ParallelPort
getMode in class ParallelPortint) value.ParallelPort.setMode(int)
public int setMode(int md)
throws UnsupportedCommOperationException
ParallelPort
setMode in class ParallelPortmd - The mode (int) parameter.
int) value.
UnsupportedCommOperationException - Unsupported Comm Operation Exception.ParallelPort.getMode()
void reportParallelEvent(int eventType,
boolean oldvalue,
boolean newvalue)
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||