|
2009-01-09 1.2.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
Define the fd (int) field. |
(package private) java.io.FileDescriptor |
FD
Define the fd (FileDescriptor) field. |
(package private) int |
insBufferCount
Define the ins buffer count (int) field. |
(package private) int |
insBufferSize
Disable read buffering for now |
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. |
(package private) boolean |
notifyOnBufferFlag
Define the notify on buffer flag (boolean) field. |
(package private) int |
outsBufferCount
Define the outs buffer count (int) field. |
(package private) int |
outsBufferSize
Disable write buffering for default |
(package private) boolean |
outsSuspended
Define the outs suspended (boolean) field. |
(package private) boolean |
rcvFraming
Define the rcv framing (boolean) field. |
(package private) int |
rcvFramingByte
Define the rcv framing byte (int) field. |
(package private) boolean |
rcvFramingByteReceived
Define the rcv framing byte received (boolean) field. |
(package private) int |
rcvThreshold
Define the rcv threshold (int) field. |
(package private) int |
rcvTimeout
Define the rcv timeout (int) field. |
| Fields inherited from class javax.comm.CommPort |
|---|
name |
| Constructor Summary | |
|---|---|
NSParallelPort(java.lang.String portName,
NSCommDriver driver)
Constructs an instance of this class from the specified port name and driver parameters. |
|
| Method Summary | |
|---|---|
void |
addEventListener(ParallelPortEventListener lst)
Add event listener with the specified lst 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 rcv 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 rt parameter. |
protected void |
finalize()
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)
Report parallel event with the specified event type, oldvalue and newvalue parameters. |
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
portName - The port name (String) parameter.driver - The driver (NSCommDriver) parameter.
java.io.IOException - IOException.| Method Detail |
|---|
public void addEventListener(ParallelPortEventListener lst)
throws java.util.TooManyListenersException
addEventListener in class ParallelPortlst - The lst (ParallelPortEventListener) parameter.
java.util.TooManyListenersException - Too Many Listeners Exception.removeEventListener()public void close()
close in class CommPortpublic void disableReceiveFraming()
disableReceiveFraming in class CommPortenableReceiveFraming(int)public void disableReceiveThreshold()
disableReceiveThreshold in class CommPortenableReceiveThreshold(int),
getReceiveThreshold()public void disableReceiveTimeout()
disableReceiveTimeout in class CommPortenableReceiveTimeout(int),
getReceiveTimeout()
public void enableReceiveFraming(int rcvFramingByte)
throws UnsupportedCommOperationException
enableReceiveFraming in class CommPortrcvFramingByte - The rcv framing byte (int) parameter.
UnsupportedCommOperationException - Unsupported Comm Operation Exception.disableReceiveFraming()
public void enableReceiveThreshold(int thresh)
throws UnsupportedCommOperationException
enableReceiveThreshold in class CommPortthresh - The thresh (int) parameter.
UnsupportedCommOperationException - Unsupported Comm Operation Exception.disableReceiveThreshold(),
getReceiveThreshold()
public void enableReceiveTimeout(int rt)
throws UnsupportedCommOperationException
enableReceiveTimeout in class CommPortrt - The rt (int) parameter.
UnsupportedCommOperationException - Unsupported Comm Operation Exception.disableReceiveTimeout(),
getReceiveTimeout()
protected void finalize()
throws java.io.IOException
finalize in class java.lang.Objectjava.io.IOException - IOException.public int getInputBufferSize()
getInputBufferSize in class CommPortint) value.setInputBufferSize(int)
public java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in class CommPortInputStream) value.
java.io.IOException - IOException.public int getMode()
getMode in class ParallelPortint) value.setMode(int)public int getOutputBufferFree()
getOutputBufferFree in class ParallelPortint) value.public int getOutputBufferSize()
getOutputBufferSize in class CommPortint) value.setOutputBufferSize(int)
public java.io.OutputStream getOutputStream()
throws java.io.IOException
getOutputStream in class CommPortOutputStream) value.
java.io.IOException - IOException.public int getReceiveFramingByte()
getReceiveFramingByte in class CommPortint) value.public int getReceiveThreshold()
getReceiveThreshold in class CommPortint) value.disableReceiveThreshold(),
enableReceiveThreshold(int)public int getReceiveTimeout()
getReceiveTimeout in class CommPortint) value.disableReceiveTimeout(),
enableReceiveTimeout(int)public boolean isPaperOut()
isPaperOut in class ParallelPortboolean) value.public boolean isPrinterBusy()
isPrinterBusy in class ParallelPortboolean) value.public boolean isPrinterError()
isPrinterError in class ParallelPortboolean) value.public boolean isPrinterSelected()
isPrinterSelected in class ParallelPortboolean) value.public boolean isPrinterTimedOut()
isPrinterTimedOut in class ParallelPortboolean) value.public boolean isReceiveFramingEnabled()
isReceiveFramingEnabled in class CommPortboolean) value.public boolean isReceiveThresholdEnabled()
isReceiveThresholdEnabled in class CommPortboolean) value.public boolean isReceiveTimeoutEnabled()
isReceiveTimeoutEnabled in class CommPortboolean) value.public void notifyOnBuffer(boolean notify)
notifyOnBuffer in class ParallelPortnotify - The notify (boolean) parameter.public void notifyOnError(boolean notify)
notifyOnError in class ParallelPortnotify - The notify (boolean) parameter.public void removeEventListener()
removeEventListener in class ParallelPortaddEventListener(ParallelPortEventListener)
void reportParallelEvent(int eventType,
boolean oldvalue,
boolean newvalue)
eventType - The event type (int) parameter.oldvalue - The oldvalue (boolean) parameter.newvalue - The newvalue (boolean) parameter.public void restart()
restart in class ParallelPortpublic void setInputBufferSize(int size)
setInputBufferSize in class CommPortsize - The size (int) parameter.getInputBufferSize()
public int setMode(int md)
throws UnsupportedCommOperationException
setMode in class ParallelPortmd - The md (int) parameter.
int) value.
UnsupportedCommOperationException - Unsupported Comm Operation Exception.getMode()public void setOutputBufferSize(int size)
setOutputBufferSize in class CommPortsize - The size (int) parameter.getOutputBufferSize()public void suspend()
suspend in class ParallelPort
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||