|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.java4less.rfax.FaxModemRXTX
public class FaxModemRXTX
Fax modem for RXTX. The steps to send a fax are:
- create faxModem Object
- set port and modem class
- call open()
- call sendFax()
- call close()
Field Summary | |
---|---|
boolean |
AtFBOR
FBOR command? |
java.lang.String |
ATFlowControlNone
AT command for flow control none |
java.lang.String |
ATFlowControlRTSCTS
AT command for flow control rts/cts |
java.lang.String |
ATFlowControlXONXOFF
AT command for flow control xon/xoff |
int |
bitRate
bit rate: 0: 2400 bps 1: 4800 bps 2: 7200 bps 3: 9600 bps 4: 12000 bps 5: 14400 bps * |
static int |
BITRATE_12000
|
static int |
BITRATE_14400
|
static int |
BITRATE_2400
|
static int |
BITRATE_4800
|
static int |
BITRATE_7200
|
static int |
BITRATE_9600
|
boolean |
debug
debug, send log to System.out |
boolean |
dialTone
dial tone/pulse |
boolean |
directBitOrder
bit order, if true LSB2MSB |
boolean |
disablePortReadTimeout
|
int |
faxClass
requested fax class, 1 (recommended), 2 or 2.0 |
java.lang.String |
faxFile
temporary fax file. |
int |
flowControl
flow controlf |
static int |
FLOWCONTROL_NONE
|
static int |
FLOWCONTROL_RTSCTS
|
static int |
FLOWCONTROL_XONXOFF
|
int |
hangCode
hangup code |
java.lang.String[] |
initCommands
list of init AT commands |
java.lang.String |
lastError
description of last error |
int |
lastResponse
last response |
FaxStatusListener |
listener
status listener. |
boolean |
log
log mode |
java.lang.String |
logStr
log output |
int |
maxRetries
maximum number of page transmision retries |
int |
MPSEOPdelay
delay between RTC and MPS/EOP default is 8 (80 ms) |
java.lang.String |
noEcho
No echo command |
java.lang.String |
ownId
own telephone number |
int |
pageCode
result last page |
int |
portRate
serial port rate |
FaxProducer |
producer
fax producer |
java.lang.String |
remoteId
telephone number of the remote fax machine |
java.lang.String |
resetCommand
AT reset command (ATZ) |
int |
resetDelay
delay after ATZ (reset command) in msecs, default is 0 |
int |
resolution
resolution normal or fine (default) |
static int |
RESOLUTION_FINE
196 dpi vertical resolution |
static int |
RESOLUTION_NORMAL
98 dpi vertical resolution |
byte[] |
reverseBytes
|
int |
sendBufferSize
size of send buffer |
int |
timeout
response timeout seconds (30) |
int |
trainingRetries
how many times shall we try the training? |
Constructor Summary | |
---|---|
FaxModemRXTX()
constructor |
Method Summary | |
---|---|
boolean |
close()
closes connection to modem |
boolean |
close(boolean reusePort)
closes connection to modem |
boolean |
createFaxFiles(FaxProducer p)
create fax files |
T4Encoder |
getEncoder()
get t.4 encoder |
java.lang.String |
getInitString()
get modem init. |
boolean |
open(FaxProducer p)
open connection |
boolean |
sendFax(java.lang.String destId)
send fax |
void |
setInitString(java.lang.String s)
set modem init. |
void |
setPortName(java.lang.String p)
select modem/port, for example COM1 , COM2 (for windows) or /dev/term/a for unix like systems |
boolean |
supportsClass1()
is a class 1 fax modem? |
boolean |
supportsClass2()
is a class 2 fax modem? |
boolean |
supportsClass20()
is a class 20 fax modem? |
boolean |
waitFor(java.lang.String resp)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public byte[] reverseBytes
public int maxRetries
public static final int BITRATE_2400
public static final int BITRATE_4800
public static final int BITRATE_7200
public static final int BITRATE_9600
public static final int BITRATE_12000
public static final int BITRATE_14400
public int portRate
public int bitRate
public int resolution
public static final int RESOLUTION_NORMAL
public static final int RESOLUTION_FINE
public java.lang.String faxFile
public java.lang.String lastError
public int trainingRetries
public java.lang.String resetCommand
public int timeout
public int resetDelay
public int lastResponse
public int pageCode
public int hangCode
public static final int FLOWCONTROL_NONE
public static final int FLOWCONTROL_XONXOFF
public static final int FLOWCONTROL_RTSCTS
public int flowControl
public java.lang.String ATFlowControlNone
public java.lang.String ATFlowControlXONXOFF
public java.lang.String ATFlowControlRTSCTS
public boolean directBitOrder
public boolean AtFBOR
public boolean dialTone
public int faxClass
public java.lang.String ownId
public java.lang.String remoteId
public java.lang.String noEcho
public boolean log
public boolean debug
public java.lang.String logStr
public FaxProducer producer
public java.lang.String[] initCommands
public FaxStatusListener listener
public int MPSEOPdelay
public int sendBufferSize
public boolean disablePortReadTimeout
Constructor Detail |
---|
public FaxModemRXTX()
Method Detail |
---|
public java.lang.String getInitString()
public void setInitString(java.lang.String s)
public void setPortName(java.lang.String p)
public boolean supportsClass1()
public boolean supportsClass2()
public boolean supportsClass20()
public T4Encoder getEncoder()
public boolean createFaxFiles(FaxProducer p)
public boolean open(FaxProducer p)
public boolean sendFax(java.lang.String destId)
public boolean waitFor(java.lang.String resp)
public boolean close()
public boolean close(boolean reusePort)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |