|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectgnu.io.CommPort
gnu.io.ParallelPort
gnu.io.LPRPort
final class LPRPort
LPRPort
入れ子のクラスの概要 | |
---|---|
(package private) class |
LPRPort.MonitorThread
|
(package private) class |
LPRPort.ParallelInputStream
Inner class for ParallelInputStream |
(package private) class |
LPRPort.ParallelOutputStream
Inner class for ParallelOutputStream |
フィールドの概要 | |
---|---|
private static boolean |
debug
|
private int |
fd
File descriptor |
private LPRPort.ParallelInputStream |
in
Input stream |
private int |
lprmode
return current mode LPT_MODE_SPP, LPT_MODE_PS2, LPT_MODE_EPP, or LPT_MODE_ECP |
private LPRPort.MonitorThread |
monThread
Thread to monitor data |
private LPRPort.ParallelOutputStream |
out
Output stream |
private ParallelPortEventListener |
PPEventListener
Parallel Port Event listener |
private int |
threshold
Receive threshold control |
private int |
timeout
Receive timeout control |
クラス gnu.io.ParallelPort から継承されたフィールド |
---|
LPT_MODE_ANY, LPT_MODE_ECP, LPT_MODE_EPP, LPT_MODE_NIBBLE, LPT_MODE_PS2, LPT_MODE_SPP |
クラス gnu.io.CommPort から継承されたフィールド |
---|
name |
コンストラクタの概要 | |
---|---|
LPRPort(java.lang.String name)
Open the named port |
メソッドの概要 | |
---|---|
void |
addEventListener(ParallelPortEventListener lsnr)
Add an event listener |
boolean |
checkMonitorThread()
|
void |
close()
|
void |
disableReceiveFraming()
|
void |
disableReceiveThreshold()
|
void |
disableReceiveTimeout()
|
protected void |
drain()
|
void |
enableReceiveFraming(int f)
Receive framing control |
void |
enableReceiveThreshold(int t)
|
void |
enableReceiveTimeout(int t)
|
(package private) void |
eventLoop()
Process ParallelPortEvents |
protected void |
finalize()
Finalize the port |
int |
getInputBufferSize()
|
java.io.InputStream |
getInputStream()
|
int |
getMode()
|
int |
getOutputBufferFree()
|
int |
getOutputBufferSize()
|
java.io.OutputStream |
getOutputStream()
|
int |
getReceiveFramingByte()
|
int |
getReceiveThreshold()
|
int |
getReceiveTimeout()
|
private static void |
Initialize()
Initialize the native library |
boolean |
isPaperOut()
|
boolean |
isPrinterBusy()
|
boolean |
isPrinterError()
|
boolean |
isPrinterSelected()
|
boolean |
isPrinterTimedOut()
|
boolean |
isReceiveFramingEnabled()
|
boolean |
isReceiveThresholdEnabled()
|
boolean |
isReceiveTimeoutEnabled()
|
protected int |
nativeavailable()
LPRPort read methods |
private void |
nativeClose()
Close the port |
void |
notifyOnBuffer(boolean enable)
|
void |
notifyOnError(boolean enable)
Note: these have to be separate boolean flags because the ParallelPortEvent constants are NOT bit-flags, they are just defined as integers from 1 to 10 -DPL |
private int |
open(java.lang.String name)
|
protected int |
readArray(byte[] b,
int off,
int len)
|
protected int |
readByte()
|
void |
removeEventListener()
Remove the parallel port event listener |
void |
restart()
|
boolean |
sendEvent(int event,
boolean state)
|
void |
setInputBufferSize(int size)
Input/output buffers These are native stubs... |
boolean |
setLPRMode(int mode)
|
int |
setMode(int mode)
|
void |
setOutputBufferSize(int size)
|
void |
suspend()
|
protected void |
writeArray(byte[] b,
int off,
int len)
|
protected void |
writeByte(int b)
Write to the port |
クラス gnu.io.CommPort から継承されたメソッド |
---|
getName, toString |
クラス java.lang.Object から継承されたメソッド |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
---|
private static final boolean debug
private int fd
private final LPRPort.ParallelOutputStream out
private final LPRPort.ParallelInputStream in
private int lprmode
private int timeout
private int threshold
private ParallelPortEventListener PPEventListener
private LPRPort.MonitorThread monThread
コンストラクタの詳細 |
---|
public LPRPort(java.lang.String name) throws PortInUseException
PortInUseException
メソッドの詳細 |
---|
private static void Initialize()
private int open(java.lang.String name) throws PortInUseException
PortInUseException
public java.io.OutputStream getOutputStream()
CommPort
内の getOutputStream
public java.io.InputStream getInputStream()
CommPort
内の getInputStream
public int getMode()
ParallelPort
内の getMode
public int setMode(int mode) throws UnsupportedCommOperationException
ParallelPort
内の setMode
UnsupportedCommOperationException
public void restart()
ParallelPort
内の restart
public void suspend()
ParallelPort
内の suspend
public boolean setLPRMode(int mode) throws UnsupportedCommOperationException
UnsupportedCommOperationException
public boolean isPaperOut()
ParallelPort
内の isPaperOut
public boolean isPrinterBusy()
ParallelPort
内の isPrinterBusy
public boolean isPrinterError()
ParallelPort
内の isPrinterError
public boolean isPrinterSelected()
ParallelPort
内の isPrinterSelected
public boolean isPrinterTimedOut()
ParallelPort
内の isPrinterTimedOut
private void nativeClose()
public void close()
CommPort
内の close
public void enableReceiveFraming(int f) throws UnsupportedCommOperationException
CommPort
内の enableReceiveFraming
UnsupportedCommOperationException
public void disableReceiveFraming()
CommPort
内の disableReceiveFraming
public boolean isReceiveFramingEnabled()
CommPort
内の isReceiveFramingEnabled
public int getReceiveFramingByte()
CommPort
内の getReceiveFramingByte
public void enableReceiveTimeout(int t)
CommPort
内の enableReceiveTimeout
public void disableReceiveTimeout()
CommPort
内の disableReceiveTimeout
public boolean isReceiveTimeoutEnabled()
CommPort
内の isReceiveTimeoutEnabled
public int getReceiveTimeout()
CommPort
内の getReceiveTimeout
public void enableReceiveThreshold(int t)
CommPort
内の enableReceiveThreshold
public void disableReceiveThreshold()
CommPort
内の disableReceiveThreshold
public int getReceiveThreshold()
CommPort
内の getReceiveThreshold
public boolean isReceiveThresholdEnabled()
CommPort
内の isReceiveThresholdEnabled
public void setInputBufferSize(int size)
CommPort
内の setInputBufferSize
public int getInputBufferSize()
CommPort
内の getInputBufferSize
public void setOutputBufferSize(int size)
CommPort
内の setOutputBufferSize
public int getOutputBufferSize()
CommPort
内の getOutputBufferSize
public int getOutputBufferFree()
ParallelPort
内の getOutputBufferFree
protected void writeByte(int b) throws java.io.IOException
java.io.IOException
protected void writeArray(byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
protected void drain() throws java.io.IOException
java.io.IOException
protected int nativeavailable() throws java.io.IOException
java.io.IOException
protected int readByte() throws java.io.IOException
java.io.IOException
protected int readArray(byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
void eventLoop()
public boolean checkMonitorThread()
public boolean sendEvent(int event, boolean state)
public void addEventListener(ParallelPortEventListener lsnr) throws java.util.TooManyListenersException
ParallelPort
内の addEventListener
java.util.TooManyListenersException
public void removeEventListener()
ParallelPort
内の removeEventListener
public void notifyOnError(boolean enable)
ParallelPort
内の notifyOnError
public void notifyOnBuffer(boolean enable)
ParallelPort
内の notifyOnBuffer
protected void finalize()
java.lang.Object
内の finalize
|
||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |