1.0.0

javax.comm
Class ParallelPort

java.lang.Object
  extended by javax.comm.CommPort
      extended by javax.comm.ParallelPort
Direct Known Subclasses:
NSParallelPort

public abstract class ParallelPort
extends CommPort

Version:
1.0.0

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 javax.comm.CommPort
close, disableReceiveFraming, disableReceiveThreshold, disableReceiveTimeout, enableReceiveFraming, enableReceiveThreshold, enableReceiveTimeout, getInputBufferSize, getInputStream, getName, getOutputBufferSize, getOutputStream, getReceiveFramingByte, getReceiveThreshold, getReceiveTimeout, isReceiveFramingEnabled, isReceiveThresholdEnabled, isReceiveTimeoutEnabled, setInputBufferSize, setOutputBufferSize, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

LPT_MODE_ANY

public static final int LPT_MODE_ANY
Define the lpt mode any (int) constant.

See Also:
Constant Field Values

LPT_MODE_SPP

public static final int LPT_MODE_SPP
Define the lpt mode spp (int) constant.

See Also:
Constant Field Values

LPT_MODE_PS2

public static final int LPT_MODE_PS2
Define the lpt mode ps2 (int) constant.

See Also:
Constant Field Values

LPT_MODE_EPP

public static final int LPT_MODE_EPP
Define the lpt mode epp (int) constant.

See Also:
Constant Field Values

LPT_MODE_ECP

public static final int LPT_MODE_ECP
Define the lpt mode ecp (int) constant.

See Also:
Constant Field Values

LPT_MODE_NIBBLE

public static final int LPT_MODE_NIBBLE
Define the lpt mode nibble (int) constant.

See Also:
Constant Field Values
Constructor Detail

ParallelPort

public ParallelPort()
Constructs an instance of this class.

Method Detail

addEventListener

public abstract void addEventListener(ParallelPortEventListener lsnr)
                               throws java.util.TooManyListenersException
Add event listener with the specified lsnr parameter.

Parameters:
lsnr - The lsnr (ParallelPortEventListener) parameter.
Throws:
java.util.TooManyListenersException - Too Many Listeners Exception.
See Also:
removeEventListener()

getMode

public abstract int getMode()
Gets the mode (int) value.

Returns:
The mode (int) value.
See Also:
setMode(int)

getOutputBufferFree

public abstract int getOutputBufferFree()
Gets the output buffer free (int) value.

Returns:
The output buffer free (int) value.

isPaperOut

public abstract boolean isPaperOut()
Gets the paper out (boolean) value.

Returns:
The paper out (boolean) value.

isPrinterBusy

public abstract boolean isPrinterBusy()
Gets the printer busy (boolean) value.

Returns:
The printer busy (boolean) value.

isPrinterError

public abstract boolean isPrinterError()
Gets the printer error (boolean) value.

Returns:
The printer error (boolean) value.

isPrinterSelected

public abstract boolean isPrinterSelected()
Gets the printer selected (boolean) value.

Returns:
The printer selected (boolean) value.

isPrinterTimedOut

public abstract boolean isPrinterTimedOut()
Gets the printer timed out (boolean) value.

Returns:
The printer timed out (boolean) value.

notifyOnBuffer

public abstract void notifyOnBuffer(boolean notify)
Notify on buffer with the specified notify parameter.

Parameters:
notify - The notify (boolean) parameter.

notifyOnError

public abstract void notifyOnError(boolean notify)
Notify on error with the specified notify parameter.

Parameters:
notify - The notify (boolean) parameter.

removeEventListener

public abstract void removeEventListener()
Remove event listener.

See Also:
addEventListener(ParallelPortEventListener)

restart

public abstract void restart()
Restart.


setMode

public abstract int setMode(int mode)
                     throws UnsupportedCommOperationException
Sets the mode value.

Parameters:
mode - The mode (int) parameter.
Returns:
The mode (int) value.
Throws:
UnsupportedCommOperationException - Unsupported Comm Operation Exception.
See Also:
getMode()

suspend

public abstract void suspend()
Suspend.


1.0.0

Copyright (c) 1999, 2007 IBM